To get variables accurate to more than one decimal place, use a script that copies the numbers from one variable to another. This will treat the variable as a string and thus give you more numbers to work with.
Download the 29 sprites and 80 scripts of "RPN calculator" and open it in Scratch
Project Notes
(This project is the same as the project made by kevin_karplus except for one thing. If you attempt to divide by zero, it makes the division button flash.)
This project is a simple reverse-Polish notation calculator.
The biggest limitation is the use of scoreboards for output, as they are only capable of showing one decimal place of accuracy.
Input and computation is maintained to the precision of the floating-point numbers, but there is no scientific notation (powers of ten).
arctan is only computed to nearest degree (in squeak interpreter, but to full precision in Java interpreter).
Now with backspace and exp(x).
Comments
You need to be logged in to post comments
Add a Comment
To get variables accurate to more than one decimal place, use a script that copies the numbers from one variable to another. This will treat the variable as a string and thus give you more numbers to work with.
cool! check out my carnival games. (link to project)
Cool!