I'm trying to write a function that counts the number of significant figures a given number has so I can ensure my calculations are rounded correctly; however, I am having a lot of trouble preventing the formatting engine from changing my inputs. For instance,Defer[00001.343200]
returns 1.3432 when I would like a way for the output to keep the raw input of a number as the original 00001.343200 or, failing that, 1.343200. ToString does the same thing. Phrased differently, I would like to suppress whatever is converting my input with leading and or trailing zeroes to an output that lacks leading and trailing zeroes.
Does anyone know how to do this, or find an equivalent solution?

NumberFormor one of the related numeric formatting wrappers might have the capabilities you need. – Daniel Lichtblau Aug 27 '15 at 21:57NumberFormby invokingToString. Might take some fiddling around though. – Daniel Lichtblau Aug 27 '15 at 23:22PrecisionandAccuracyandRealDigits; those should have what you need in order to get significant figures. – Daniel Lichtblau Aug 27 '15 at 23:24echo[$13]for inputecho[1*^99, 2^2]on a new notebook (with other notebooks loaded). Frankly I'm not a regular Mathematica user, and had no idea how deep this rabbit hole was. Am I missing a command? – hedgepig Aug 27 '15 at 23:42"00001.343200"? – IPoiler Aug 28 '15 at 00:3100001.343200as1.3432`-- these are literally identical as far as the system is concerned. So if you need to preserve exact input forms it is better to use the String expression type, i.e."00001.343200". If you describe what you wish to accomplish people can probably help you find a solution, even if it's not exactly what you had in mind. – Mr.Wizard Aug 28 '15 at 00:32"is pretty concise already is it not? – Mr.Wizard Aug 28 '15 at 03:17PrecisionandAccuracyto assess number of significant figures. – Daniel Lichtblau Aug 28 '15 at 14:08$PreRead. It would be a lot of headache just to avoid typing quote marks around the numbers when you key them in though. (I actually think this is a dup, but I cant find it at the moment) – george2079 Aug 28 '15 at 17:07