Hi UiPath,
I need help with my situation.
let say I have a dynamic variable with values like 12.000 or 12.00
I want to convert it to a whole number.
My goal is it for it to become : 12
How can I do that?
Thanks!
Hi UiPath,
I need help with my situation.
let say I have a dynamic variable with values like 12.000 or 12.00
I want to convert it to a whole number.
My goal is it for it to become : 12
How can I do that?
Thanks!
use string format method or just convert it to an integer like cint(Variable)
You can try with @unknownay Method
Cint(“12.052”)
Or
You can also try with String Manipulation (Split)
Split("12.052",".")(0)
Regards
Gokul
Used Math.floor Method:
With the Math.floor method, a number can be rounded down to the nearest integer.
For example, we could use it to write:
const intvalue = Math.floor(123.45);
console.log(intvalue)
Then the value of intValue is 123.