Skip to Content
0

¿Where can i find the Math Util Component?

Mar 02, 2017 at 01:32 PM

37

avatar image

hi, i am trying to round a number, i understand that i can do it with: Math Util Component, to get something like a Math.round() or toFixed in Javascript to apply in BIAL Script.

I was looking at the forum but I get the following:

We're sorry, but you're attempting to access SCN content that was not migrated to the new SAP Community experience.

regards.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Mustafa Bensan Mar 02, 2017 at 02:11 PM
1

Marin,

There is no separate Math Util Component. The Ctrl+Space content assistance in a script window will display Math as one of the standard options. You can simply type Math.round() for rounding.

Regards,

Mustafa.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks I did some tests and you have all the reason:

var a = Math.round(20.49); 

//i did this because requiere convert to string to show with an alert function. 
var b = a+""; 


APPLICATION.alert(b); //Show 20

Regards.

1