Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Numerical Precision
- PhysicsLover999
-
100+ posts
Numerical Precision
What is Scratch's precision? I would make a program that finds machine epsilon, but I'm too lazy. 

- PrincessPanda_test_
-
1000+ posts
Numerical Precision
*googles “precision”*
Maybe 100%
the quality, condition, or fact of being exact and accurate.
“the deal was planned and executed with military precision”
synonyms: exactness, exactitude, accuracy, correctness, preciseness; More
marked by or adapted for accuracy and exactness.
modifier noun: precision
“a precision instrument”
technical
refinement in a measurement, calculation, or specification, especially as represented by the number of digits given.
plural noun: precisions
“this has brought an unprecedented degree of precision to the business of dating rocks”
Maybe 100%
- Deerleg
-
1000+ posts
Numerical Precision
No, it's kind of off once you get to really big numbers and on *googles “precision”*the quality, condition, or fact of being exact and accurate.
“the deal was planned and executed with military precision”
synonyms: exactness, exactitude, accuracy, correctness, preciseness; More
marked by or adapted for accuracy and exactness.
modifier noun: precision
“a precision instrument”
technical
refinement in a measurement, calculation, or specification, especially as represented by the number of digits given.
plural noun: precisions
“this has brought an unprecedented degree of precision to the business of dating rocks”
Maybe 100%
blocks.
- MegaApuTurkUltra
-
1000+ posts
Numerical Precision
Flash numbers adhere to the IEEE-754 double-precision standard which has a machine epsilon of 2.22e-16.
So I would assume Scratch's epsilon is the same.
So I would assume Scratch's epsilon is the same.
- gtoal
-
1000+ posts
Numerical Precision
What is Scratch's precision? I would make a program that finds machine epsilon, but I'm too lazy.
https://scratch.mit.edu/projects/70154644/
- gtoal
-
1000+ posts
Numerical Precision
Precision is not accuracy. My computer says the time is 6pm, 51 minutes, 34.0016722047 seconds. *googles “precision”*the quality, condition, or fact of being exact and accurate.
However it is about ten minutes off :-) So it is precise to a billionth of a second but accurate to only 10 minutes.
(In a similar vein, regular is not the same as frequent. “I bathe regularly” could mean twice a year, every six months to the day.)
Weasel-wording like this can be used to great effect, especially in court. For example if you question the reliability of a police radar detector, and they tell the judge under oath that “our radar detectors are checked regularly and are precise to one hundredth of a mile per hour” you'll know the follow-up questions to ask them :-)
G
Last edited by gtoal (July 11, 2015 23:59:19)
- TheLogFather
-
1000+ posts
Numerical Precision
Scratch uses standard double-precision floating-point numbers for variables that contain a number. That means it has 53 binary digits of precision, which corresponds to one part in 9 007 199 254 740 992.
See https://en.wikipedia.org/wiki/Double-precision_floating-point_format for more.
(Note that precision is a different thing to asking what is the smallest or largest value that a variable can hold, as others have mentioned, so if that's what you mean…)
See https://en.wikipedia.org/wiki/Double-precision_floating-point_format for more.
(Note that precision is a different thing to asking what is the smallest or largest value that a variable can hold, as others have mentioned, so if that's what you mean…)
- Discussion Forums
- » Questions about Scratch
-
» Numerical Precision