Stephan, do we know that a real is always float64? Cheers Lex
On Monday, March 16, 2015 at 9:34:57 AM UTC+10, Stefan Karpinski wrote: > > On Sun, Mar 15, 2015 at 7:24 PM, <ele...@gmail.com <javascript:>> wrote: > >> The problem is that its fairly easy to be casually wrong when using reals >> as indexes. What does 10. index? (Hint: floating point numbers can't >> represent 10 exactly, its 9.999999...) > > > This is simply untrue. All integers between ±2^53 can be represented > exactly as Float64s. Beyond that, many integers can be represented exactly, > but not all of them. >