Discuss Scratch

undeterminstic
Scratcher
1000+ posts

CS question

in scratch what is the smallest positve integer where n = n+1 (due to floating point error or smth)

Last edited by undeterminstic (Feb. 1, 2024 18:15:43)


yes
Za-Chary
Scratcher
1000+ posts

CS question

Just tested it, and it appears to be 9999999999999999 (sixteen nines).

This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.

I was a Scratch Team member from May 10th 2019 to October 29th 2021.

my notebook | scratch team essay | accessibility essay
yadayadayadagoodbye
Scratcher
1000+ posts

CS question

Za-Chary wrote:

Just tested it, and it appears to be 9999999999999999 (sixteen nines).
nope, 9999999999999995 also goes up. I believe in numbers above the threshold, all the non-divisible-by-2 numbers would be somewhat faulty (the one ending with 7 becomes 6)

Scratchers that I've cati-fied
undeterministic
Scratcher
500+ posts

CS question

yadayadayadagoodbye wrote:

Za-Chary wrote:

Just tested it, and it appears to be 9999999999999999 (sixteen nines).
nope, 9999999999999995 also goes up. I believe in numbers above the threshold, all the non-divisible-by-2 numbers would be somewhat faulty (the one ending with 7 becomes 6)
9999999999999900 also works

jvvg
Scratcher
1000+ posts

CS question

At least on my machine, 9007199254740992.


Professional web developer and lead engineer on the Scratch Wiki
Maybe the Scratch Team isn't so badWhy the April Fools' Day forum didn't work last year
undeterministic
Scratcher
500+ posts

CS question

jvvg wrote:

At least on my machine, 9007199254740992.
2^53

Za-Chary
Scratcher
1000+ posts

CS question

yadayadayadagoodbye wrote:

Za-Chary wrote:

Just tested it, and it appears to be 9999999999999999 (sixteen nines).
nope, 9999999999999995 also goes up. I believe in numbers above the threshold, all the non-divisible-by-2 numbers would be somewhat faulty (the one ending with 7 becomes 6)
silly me

This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.

I was a Scratch Team member from May 10th 2019 to October 29th 2021.

my notebook | scratch team essay | accessibility essay

Powered by DjangoBB