on 03-02-2017 1:32 PM
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:
regards.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.