Bug introduced in 10.0 and fixed in 10.4
A curiosity really, but why do I get garbage here?
TextString@NumberForm[3 10^23, 24]
300000000000000008388608.
And why does the output even have a decimal point?
Even more strange if we do this sequentially we get the expected result.
NumberForm[3 10^23, 24]
300000000000000000000000
TextString[%]
300000000000000000000000
This shows up in StringTemplate
as well since TextString
is the default InsertionFunction
V 10.1 / windows 7 64 bit and linux same issue.
10.4.1 for Mac OS X x86 (64-bit) (April 11, 2016)
or11.1.1 for Mac OS X x86 (64-bit) (April 18, 2017)
). What version and OS are you using? $\endgroup$