Is there some straightforward way to ensure that, when converted to strings, approximate numbers (i.e., numbers with the Real
head) won't have a trailing "."? I would like it if they were to only have the decimal point in cases where there's actually a displayed fractional part.
The solutions I've found are not robust, and depend on using Precision
and Accuracy
together NumberForm
in an awkward way, or using RealDigits
in an even more awkward way.
Thanks in advance.