02-24-2014 12:16 AM - edited 03-14-2019 01:08 PM
Hi everybody,
I am using UCCX 9.0 and writing an AEF file
There is a float value in the AEF.
float number = 3.4586097F
is there a way to tranform it to 2 decimal place?
that is 3.46 ?
Thanks
Sam
Solved! Go to Solution.
02-24-2014 12:35 AM
Hi,
use the following code in a Set step:
java.lang.Math.round(num1*100.0)/100.0
This is the simplest way, although this should not be used if precise values (currency etc). But if it's not an issue, the above is relatively safe.
G.
02-24-2014 12:35 AM
Hi,
use the following code in a Set step:
java.lang.Math.round(num1*100.0)/100.0
This is the simplest way, although this should not be used if precise values (currency etc). But if it's not an issue, the above is relatively safe.
G.
02-24-2014 01:00 AM
Thanks a lot ! it's work perfectly!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide