Large float and double numbers in java printing/persisting incorrectly. Is this behavior due to number of significant digits?
问题 In an application I am working some numbers get converted and saved from long(18 digits) to float/double. These numbers are like Reference/Id's but not used for calculations. Recently I noticed some discrepancies in data being stored as float/double. I am trying to understand if the behavior is due to what floating point numbers call significant digits and maybe a simple explanation for the same. My questions based on below program are Output no : 5 shows a really big number(39 digits before