
December 28th, 2004, 08:59 AM
|
Registered User
|
|
Join Date: Dec 2004
Location: Wild and Wonderful, West Virginia
Posts: 27
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
If it has digits in those 0s then it wouldn't have dropped them. thus 789 would become 7.89 and your problem would not exist. One way is to just test if the 0s were dropped possibly by getting length of the string before vs after, and adding the '.00' afterwards.
Not sure what you're actually doing, but if its just to divide a string by 100 seems easier to just manipulate the decimal in the string, but if its not a multiple of 10 then its not so easy.
|