Online Tutorials & Training Materials | STechies.com
Register Login

Use of parseInt and parstFloat in Scripting

19 Feb 2016 6:35 pm || 0

What is the Use of parseInt and parstFloat in Scripting?

Under SAP UI5 /FIORI frontend apps :

For converting script variable value from string data type to int.

use parseInt(<scriptvariable>) ;

For converting script variable value from string data type to float

use parseFloat(<scriptvariable>) ;

Note : parseInt and parstFloat are standard methods in scripting.