floor and ceil

ankit110
Kilo Contributor

Are there any functions in glide system that provide the floor and ceil functionality.

Like:

var a= 48.5 or 48.2 or 48.8

I need the answer =48

1 ACCEPTED SOLUTION

avinash kumar
Tera Expert

Hi Ankit,



use Math.floor(a) or Math.ceil(a). These are ECMA 3 complaint and supported by service now.



Regards,


Avinash


View solution in original post

2 REPLIES 2

avinash kumar
Tera Expert

Hi Ankit,



use Math.floor(a) or Math.ceil(a). These are ECMA 3 complaint and supported by service now.



Regards,


Avinash


Deepa Srivastav
Kilo Sage

Check below too:-



Round 'Em Up!


Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.


Thanks,
Deepa