You could scan backwards over your formatted string afterwards and turn zeros back into nulls, and then remove the dot if it then ends in a dot.
You could scan backwards over your formatted string afterwards and turn zeros back into nulls, and then remove the dot if it then ends in a dot.
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
Isn't there a standard function to check out how many decimal places a float has? If there isn't I'm gonna make one!
"The Internet treats censorship as damage and routes around it." - John Gilmore