Discuss Scratch

BlueCarpetGames
Scratcher
82 posts

Automatically fix floating point errors.

bump
BlueCarpetGames
Scratcher
82 posts

Automatically fix floating point errors.

bump
A-MARIO-PLAYER
Scratcher
1000+ posts

Automatically fix floating point errors.

Support. Scratch is for 8-16 year olds, and only like 2 to 5 people who are 8-12 (12 is the most popular registration age according to the Statistics section) know what a “floating point” even is. Like, it's only 1 JS library and a few lines to fix this.
A-MARIO-PLAYER
Scratcher
1000+ posts

Automatically fix floating point errors.

BlueCarpetGames wrote:

(#42)
bump
Please don't spam bumps. It's unconstructive, plus you're not meant to bump pages that haven't fell off the first page anyways.
BringUpYourPost
Scratcher
500+ posts

Automatically fix floating point errors.

BigNate469 wrote:

undeterminstic wrote:

TheCreatorOfUnTV wrote:

snip
what if say you calculate
( of ((0.10000000002) + (0.20000000002)) :: operators) the out put of addition is 0.30000000004 which would go to .3 but that is unacceptable
Well then an exception can be made if there are a certain number of decimal digits in either of the inputs. Besides, something like this is usually rounded by Scratch to two decimal places.
if you make that exception then you immediately break 0.1+0.2 as it now stays 0.300000000004
BlueCarpetGames
Scratcher
82 posts

Automatically fix floating point errors.

A-MARIO-PLAYER wrote:

BlueCarpetGames wrote:

(#42)
bump
Please don't spam bumps. It's unconstructive, plus you're not meant to bump pages that haven't fell off the first page anyways.
I am waiting until it leaves the first page. It was on page three when I bumped it. And I'm going to keep bumping it until this issue gets acknowledged by the ST in a meaningful way. It's a very, very wide-reaching issue and the fact that nothing has been done about it since Scratch's founding is quite baffling.
BringUpYourPost
Scratcher
500+ posts

Automatically fix floating point errors.

BlueCarpetGames wrote:

A-MARIO-PLAYER wrote:

BlueCarpetGames wrote:

(#42)
bump
Please don't spam bumps. It's unconstructive, plus you're not meant to bump pages that haven't fell off the first page anyways.
I am waiting until it leaves the first page. It was on page three when I bumped it. And I'm going to keep bumping it until this issue gets acknowledged by the ST in a meaningful way. It's a very, very wide-reaching issue and the fact that nothing has been done about it since Scratch's founding is quite baffling.
every programming language has this problem also an error 0.000000000004 is neglibible, and doesn't matter. all computational with decimals is not about what the exact value but what it represents. this error cannot get that big. so it is irrelevant
ThisIsTemp1
Scratcher
1000+ posts

Automatically fix floating point errors.

BlueCarpetGames wrote:

A-MARIO-PLAYER wrote:

BlueCarpetGames wrote:

(#42)
bump
Please don't spam bumps. It's unconstructive, plus you're not meant to bump pages that haven't fell off the first page anyways.
I am waiting until it leaves the first page. It was on page three when I bumped it. And I'm going to keep bumping it until this issue gets acknowledged by the ST in a meaningful way. It's a very, very wide-reaching issue and the fact that nothing has been done about it since Scratch's founding is quite baffling.

Bumping a topic doesn't mean it is more likely to be accepted. If discussion slows down or stops, just don't bump it, or bump it much less frequently.
BlueCarpetGames
Scratcher
82 posts

Automatically fix floating point errors.

ThisIsTemp1 wrote:

BlueCarpetGames wrote:

A-MARIO-PLAYER wrote:

BlueCarpetGames wrote:

(#42)
bump
Please don't spam bumps. It's unconstructive, plus you're not meant to bump pages that haven't fell off the first page anyways.
I am waiting until it leaves the first page. It was on page three when I bumped it. And I'm going to keep bumping it until this issue gets acknowledged by the ST in a meaningful way. It's a very, very wide-reaching issue and the fact that nothing has been done about it since Scratch's founding is quite baffling.

Bumping a topic doesn't mean it is more likely to be accepted. If discussion slows down or stops, just don't bump it, or bump it much less frequently.
I didn't say anything about getting the suggestion accepted. All I'm saying is that this issue affects a huge chunk of Scratch's users, most of whom have no idea what a “floating point” even is. If Scratch wants to stay true to its mission of being accessible, they need to do something about this, and I'd prefer if something were done sooner, rather than later. So I'm not just going to let the discussion fizzle out.

Last edited by BlueCarpetGames (Aug. 9, 2024 17:03:37)

Purin2022
Scratcher
100+ posts

Automatically fix floating point errors.

If it was that easy, then the developer who made JavaScript (and people who made other languages) would have fixed it already.

Last edited by Purin2022 (Aug. 9, 2024 17:17:32)

BigNate469
Scratcher
1000+ posts

Automatically fix floating point errors.

Purin2022 wrote:

If it was that easy, then the developer who made JavaScript (and people who made other languages) would have fixed it already.
And some of them do. There are actual purposes for keeping the floating-point errors around, one of which is it's just easier, and it runs faster.
A-MARIO-PLAYER
Scratcher
1000+ posts

Automatically fix floating point errors.

Purin2022 wrote:

(#50)
If it was that easy, then the developer who made JavaScript (and people who made other languages) would have fixed it already.
Nobody made JavaScript, there are many JavaScript implementations out there such as Node or EMCAScript
scratchcode1_2_3
Scratcher
1000+ posts

Automatically fix floating point errors.

A-MARIO-PLAYER wrote:

(#52)
Nobody made JavaScript
*sad Brendan Eich noises*
breakfast_for_dinner
Scratcher
1000+ posts

Automatically fix floating point errors.

A-MARIO-PLAYER wrote:

(#52)
Nobody made JavaScript
BlueCarpetGames
Scratcher
82 posts

Automatically fix floating point errors.

bump
BlueCarpetGames
Scratcher
82 posts

Automatically fix floating point errors.

bump
BlueCarpetGames
Scratcher
82 posts

Automatically fix floating point errors.

bump
BlueCarpetGames
Scratcher
82 posts

Automatically fix floating point errors.

bump
A-MARIO-PLAYER
Scratcher
1000+ posts

Automatically fix floating point errors.

breakfast_for_dinner wrote:

(#54)

A-MARIO-PLAYER wrote:

(#52)
Nobody made JavaScript
snip large image
oh i forgot
endyourenite
Scratcher
100+ posts

Automatically fix floating point errors.

A-MARIO-PLAYER wrote:

breakfast_for_dinner wrote:

(#54)

A-MARIO-PLAYER wrote:

(#52)
Nobody made JavaScript
snip large image
oh i forgot
They will always be an owner of programming languages

Powered by DjangoBB