Remove trailing zeros

For what you’re trying to do, getting Revit’s display unit value makes a lot more sense, so I’d go for Kulkul’s suggestion. But for future reference, if you’re trying to get the string representation of a floating point number, my suggestion was this:

2 Likes