Discuss Scratch
- Discussion Forums
- » Suggestions
- » scratch YOU NEED Octuple-precision floating-point
- 8to16
-
1000+ posts
scratch YOU NEED Octuple-precision floating-point
removed
Last edited by 8to16 (Sept. 30, 2024 17:16:55)
- GamesReinvented
-
100+ posts
scratch YOU NEED Octuple-precision floating-point
Scratch Design Goals. It should be easy to climb in and get started with Scratch - even for Scratchers who have no experience programming. I guess this is rejected.How? If you re-read it, this is simply just a way to minimize floating point errors, such as 0.1 + 0.2 = 0.300…004. This would instead minimize confusion and prevent some rounding errors making scratch easier to get into, rather than harder. Only read like 2 paragraphs into the wikipedia page you linked and it's pretty obvious this doesn't fit with the
- jvvg
-
1000+ posts
scratch YOU NEED Octuple-precision floating-point
It still wouldn't eliminate them. The only way to truly eliminate them would be to introduce an integer data type (and possibly a fraction data type and maybe decimal data type?), but that's a very different suggestion.Scratch Design Goals. It should be easy to climb in and get started with Scratch - even for Scratchers who have no experience programming. I guess this is rejected.How? If you re-read it, this is simply just a way to minimize floating point errors, such as 0.1 + 0.2 = 0.300…004. This would instead minimize confusion and prevent some rounding errors making scratch easier to get into, rather than harder. Only read like 2 paragraphs into the wikipedia page you linked and it's pretty obvious this doesn't fit with the
- Dingineer549
-
27 posts
scratch YOU NEED Octuple-precision floating-point
IT WELL MAKE NUMBER LIMIT BIGER
- 8to16
-
1000+ posts
scratch YOU NEED Octuple-precision floating-point
(#7)oh i misread
How? If you re-read it, this is simply just a way to minimize floating point errors, such as 0.1 + 0.2 = 0.300…004. This would instead minimize confusion and prevent some rounding errors making scratch easier to get into, rather than harder.
- BringUpYourPost
-
500+ posts
scratch YOU NEED Octuple-precision floating-point
but that will be kinda slow right? also what if somebody intentionally uses floating point rounding errors to make a project, if the error is different that will break projects
- GamesReinvented
-
100+ posts
scratch YOU NEED Octuple-precision floating-point
As I said, minimize. It still wouldn't eliminate them. The only way to truly eliminate them would be to introduce an integer data type (and possibly a fraction data type and maybe decimal data type?), but that's a very different suggestion.
- MagicCoder330
-
1000+ posts
scratch YOU NEED Octuple-precision floating-point
Just because the ceiling is higher doesn't make the floor harder to get on. I don't understand octuple-precision floating points yet but I still want them, seems like they could help me code better, and also help me with more advanced programming languages.(#4)Only read like 2 paragraphs into the wikipedia page you linked and it's pretty obvious this doesn't fit with the Scratch Design Goals. It should be easy to climb in and get started with Scratch - even for Scratchers who have no experience programming. I guess this is rejected.
https://en.wikipedia.org/wiki/Quadruple-precision_floating-point_format
also, the wikipedia link is the wrong one. The one were looking four is Octuple, not quadruple. quadruple doesn't work for planck units where extreme precision is required. https://en.wikipedia.org/wiki/Octuple-precision_floating-point_format
we should also add sexdecuple (the tuple for 16) floating points /j
Last edited by MagicCoder330 (Sept. 30, 2024 17:13:00)
- bjagain
-
73 posts
scratch YOU NEED Octuple-precision floating-point
I mean like five people would probably use it ever, but sure. Why not.
- MagicCoder330
-
1000+ posts
scratch YOU NEED Octuple-precision floating-point
let's be honest, a griffpatch tutorial would form and it would become (semi) common knowledge I mean like five people would probably use it ever, but sure. Why not.
- BigNate469
-
1000+ posts
scratch YOU NEED Octuple-precision floating-point
I will point out that the way Scratch currently stores floating-point numbers is the way JavaScript, the language Scratch 3.0 (and most of the interactive stuff on the web) is programmed in.
To change that, and still have the Online Editor exist, they would have to implement some sort of system that would probably wind up being somewhat laggy and slow, and likely wouldn't be perfect anyways.
To change that, and still have the Online Editor exist, they would have to implement some sort of system that would probably wind up being somewhat laggy and slow, and likely wouldn't be perfect anyways.
- mysinginmonsters
-
100+ posts
scratch YOU NEED Octuple-precision floating-point
That's what I was thinking. Scratch would need to implement their own custom system to eliminate floating point errors, since it's just using javascript for the math. I will point out that the way Scratch currently stores floating-point numbers is the way JavaScript, the language Scratch 3.0 (and most of the interactive stuff on the web) is programmed in.
To change that, and still have the Online Editor exist, they would have to implement some sort of system that would probably wind up being somewhat laggy and slow, and likely wouldn't be perfect anyways.
However, floating point errors don't show up on the variable watchers. So it really isn't a noticeable issue, but this means that Scratch does already have some sort of system to fix floating point errors.
And even though the issue isn't noticeable, I can still certainly see it causing confusion. For example, a floating point error would say that a variable is not equal to 0.3, even though the variable watcher says it is 0.3. And the length would show 19 instead of 3, and joining it would also join the floating point error.
Last edited by mysinginmonsters (Oct. 3, 2024 19:23:27)
- Discussion Forums
- » Suggestions
-
» scratch YOU NEED Octuple-precision floating-point