Is there a standard way of representing numbers of arbitrary size or precision for storage in a text file, JSON message, variable etc.?(adsbygoogle = window.adsbygoogle || []).push({});

I am thinking of representing integers as decimal strings e.g. "-12345678901234567" and floats as an ordered pair (array) of strings representing decimal mantissa and exponent e.g. ["-1.2345678901234567", "17"], but if there is some existing standard I would rather follow that.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Standard representation for arbitrary size/precision numbers

**Physics Forums | Science Articles, Homework Help, Discussion**