Online Tutorials & Training Materials | STechies.com
Register Login
Advertisement

Use of parseInt and parstFloat in Scripting

|| 0

Use of parseInt and parstFloat in Scripting
Stechies

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.