News for hackers. Stuff that matters.
Re:What I didn’t know about Ruby Numbers by TheRealPomax on Thursday November 19, 2020 @11:32AM (#25151141)
careful with your terminology there: integers are by definition not real numbers. All ints are reals, but only an infinitely small proportion of reals are ints.

If, however, you meant "the integer datatypes can't represent all integers", then you probably want to say that instead of mixing maths terminology. And you'll also have to back up that claim because bigintegers are as accurate as you have space to store them in; their limitation is not imposed by their spec, but by your hardware.

Unlike IEEE floating point decimal numbers, where the limitation is explicitly part of the spec itself. That limitation is literally why floats even work at all.

Re:What I didn’t know about Ruby Numbers by lukeschlather on Thursday November 19, 2020 @05:34PM (#25155173)
Oh I thought thread was contrasting floats with fixnums, I was very confused and wrong.