Discuss Scratch
- Discussion Forums
- » Suggestions
- » Automatically fix floating point errors.
- A-MARIO-PLAYER
-
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
-
1000+ posts
Automatically fix floating point errors.
(#42)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.
bump
- BringUpYourPost
-
500+ posts
Automatically fix floating point errors.
if you make that exception then you immediately break 0.1+0.2 as it now stays 0.300000000004Well 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.what if say you calculate snip
( of ((0.10000000002) + (0.20000000002)) :: operators) the out put of addition is 0.30000000004 which would go to .3 but that is unacceptable
- BlueCarpetGames
-
82 posts
Automatically fix floating point errors.
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.(#42)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.
bump
- BringUpYourPost
-
500+ posts
Automatically fix floating point errors.
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 irrelevantI 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.(#42)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.
bump
- ThisIsTemp1
-
1000+ posts
Automatically fix floating point errors.
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.(#42)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.
bump
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
-
82 posts
Automatically fix floating point errors.
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.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.(#42)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.
bump
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.
Last edited by BlueCarpetGames (Aug. 9, 2024 17:03:37)
- Purin2022
-
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
-
1000+ posts
Automatically fix floating point errors.
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. If it was that easy, then the developer who made JavaScript (and people who made other languages) would have fixed it already.
- A-MARIO-PLAYER
-
1000+ posts
Automatically fix floating point errors.
(#50)Nobody made JavaScript, there are many JavaScript implementations out there such as Node or EMCAScript
If it was that easy, then the developer who made JavaScript (and people who made other languages) would have fixed it already.
- scratchcode1_2_3
-
1000+ posts
Automatically fix floating point errors.
(#52)*sad Brendan Eich noises*
Nobody made JavaScript
- breakfast_for_dinner
-
1000+ posts
Automatically fix floating point errors.
(#52)
Nobody made JavaScript

- Discussion Forums
- » Suggestions
-
» Automatically fix floating point errors.