floating point - Using floats for counters - Any problems? -
I see a sphere uses float 64 as code counter, does it lack accuracy on some Creates a problem with the point? In particular, all the integers are shown in the category covered by Flat 64? If not, when do I start walking into problems? When do I run out of completed integers?
If you are thinking, then the reason for using FlatA 64 as a counter is because it is part of a [float64] which holds several metrics that are not integers, I say the Gong specification , "FlatA64 is a set of all IEEE-754 64-bit floating-point I
number." Which is commonly known as double exact number,
You can read all your glory details if interested, To answer your question, quote,
"... the next border, 2 53 to 2 54 , everything multiplied by 2 It is done ... "
So if you want to use it as a counter, i.e. positive integer, you will not have problems till 2 53 = 9,007,199,254,740,992.
Comments
Post a Comment