Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
ArjunPrasad
Contributor III
Contributor III

after decimal point values without round off

Hi All,

i have a Id and value column in table , trying to do truncate the values after decimal with using below expression

Dim: ID

expression: Floor(Sum(Value),0.01), with this i am getting expected values for Positive values,

but for some netagative values getting rounded off as shown below image

from below image let say value -107.9667 should show -107.96  but showing 107.97

 

.Capture1.png

please find attached datasample and suggest the solution.

Thanks in advance

Arjun

 

4 Replies
MayilVahanan

Hi Arjun,

For negative values, you can use ceil() instead of floor(), it will helps you

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
ArjunPrasad
Contributor III
Contributor III
Author

Thanku for reply Mayil

with Ceil expression negative value coming as expected but Positive value not coming as expected.

MayilVahanan

Hi Arjun,

Try like below

If(Sum(Values)<0, ceil(), floor())

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
ArjunPrasad
Contributor III
Contributor III
Author

Hi @MayilVahanan 

it almost all values are showing fine but for one value its not showing as expected ,its a strange i dont know why

plz find attached excel in that

ID= 497647238 value is -135.2  for this it showing -135.19 it should show -135.20

Plz suggest

Thanks,

Arjun