How can I strip trailing zeros from a variable type double

fdx12345

Active Member
Licensed User
Longtime User
I have a varible, when said and done, has a content of something like 75.230000000000000000000000000000000000000.

How can I strip the trailing zeros? I looked at BigNumers but the compiler states it can not convert a double to a Bignumber.
 

fdx12345

Active Member
Licensed User
Longtime User
Sorry: need to round to 2 significant digits.

I thought the variable was something like 75.340000000000000 but it was really like 75.349999999999.

I need to round it either 75.35 (preferably) or even 75.34 if nothing else.
 
Upvote 0

fdx12345

Active Member
Licensed User
Longtime User
Fount the answer

User NumerFormat. I orginally looked for information on how to strip trailing zeros and should have done the same when I discovered the problem was really a rounding problem.
 
Upvote 0
Top