I am using SetScale2 for my rounding. It is working great, except want to strip decimal places if they are zero. I am allowing for up to 10 decimal places.
BG_CalculateFormula.SetScale2(10, BG_CalculateFormula.ROUND_HALF_UP)
Example:
Currently: 40468564.2240000000
Would like: 40468564.224 (stripping off 0s)
If I have: 40468564.2240000001
I would still like to have: 40468564.2240000001 (this is working as expected)
Thanks for any help!
WDK
BG_CalculateFormula.SetScale2(10, BG_CalculateFormula.ROUND_HALF_UP)
Example:
Currently: 40468564.2240000000
Would like: 40468564.224 (stripping off 0s)
If I have: 40468564.2240000001
I would still like to have: 40468564.2240000001 (this is working as expected)
Thanks for any help!
WDK