Another option is to do what is done in EXIF, which is to use rational numbers. Then you are simply saving two integers. You could use continued fractions to find a good pair. Or just use the digits you want to save and the appropriate power of ten.