Register Login

Use of parseInt and parstFloat in Scripting

Updated May 18, 2018

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.


×