Browse Search Popular Register Upload Rules User list Login:
Search:
Real Calculator

Image:
screenshot of the scene

Author: roshanali

Group: Default

Filesize: 295.19 kB

Date added: 2021-10-09

Rating: 5.6

Downloads: 7190

Views: 739

Comments: 12

Ratings: 2

Times favored: 1

Made with: Algodoo v2.1.0

Tags:

Scene tag

100 % working calculator. The video link for the procedure: https://youtu.be/O8WCMHM4OEU
All Buttons are working now except MU button because I have not yet coded it.
Last edited at 2021/10/10 12:13:32 by roshanali
Please log in to rate this scene
edit
Similar scenes
Title: calculator
Rating: 5.375
Filesize: 414.16 kB
Downloads: 883
Comments: 5
Ratings: 2
Date added: 2020/02/14 20:54:26
Made with: Algodoo v2.1.0
Rating: rated 5.4
download
Title: decimal to 2bit binary
Rating: 5.625
Filesize: 123.58 kB
Downloads: 1852
Comments: 7
Ratings: 2
Date added: 2020/09/08 05:03:02
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: calculator
Rating: 5
Filesize: 14.95 kB
Downloads: 2177
Comments: 1
Ratings: 1
Date added: 2022/05/08 00:49:58
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Simple calculator
Rating: 5
Filesize: 163.61 kB
Downloads: 1591
Comments: 4
Ratings: 1
Date added: 2023/11/13 12:07:16
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Calculator
Rating: 5
Filesize: 351.83 kB
Downloads: 1175
Comments: 1
Ratings: 1
Date added: 2009/06/08 08:24:52
Made with: Phun
Rating: rated 5
download
Title: Calculator Blocks: The Color Update
Rating: 5
Filesize: 195.21 kB
Downloads: 991
Comments: 2
Ratings: 1
Date added: 2022/09/10 10:41:19
Made with: Algodoo v2.1.3
Rating: rated 5
download
:tup:
Actually, it's not 100% working because the following keys do not work:

MRC M- M+ sqrt and +/-

Also, it calculates divide by zero as +inf. It should give an error condition.

There are a few other minor inconsistencies compared to a real calculator but it's a good start.
OMG this works good :tup: :tup: _o_ _o_ :tup:
Dear Xray. Actually I didn't know, what MRC, M+ buttons, do. If some one tell me, what we do with those buttons, then I can code for that. By 100% I mean, that the buttons I coded for are 100% working. If you see in the video I have posted on my channel on YouTube, you will see that I did not even cut those buttons, you are talking about. If you know coding, then you just cut those buttones, and put code for those buttons. I hope they will start working too.
Thanks all of you for appreciating my work.
Dear Xray. Its working now. Redownload it. Now all the buttons are working, only button is left to code for now. That is the point button. I am trying to find a way to code it.
I have coded for all the buttons now. The only button left is the MU button, whose function I don't know, that's I have not yet coded it.
The MU button is "Mark Up". I found its syntax on the web and copied here for you:

The [MU] key is used for markup. Here is an example of the markup function. If the purchase price of an item is $120 and the profit rate is 25%, what would the selling price and profit be?
Enter the following:
120 [MU] 25 [%] (result 160)
[=] (result 40)
The selling price would be $160 and the profit would be $40.


I know that calculators are not easy to code using Thyme Script because I have tried it myself a few years ago. There are a few other calculator scenes here in the Algobox archive but only a couple of them are what I would consider "well made". A few, to be totally honest, are not at all usable.

You are making good progress on your calculator scene, but keep in mind that in order to get it working "perfectly" like the real world model (if that is your goal), it will take some time to wring out all the little bugs.
Last edited at 2021/10/11 00:03:33 by Xray
Thank you Xray for the code and appreciation.
Also I have found a bug in Thyme in Algodoo. Just open the console by pressing F10. Just add 1.11+.001. You will get a wrong result. Thats why sometimes the calculator also gives wrong output, because the calculator output depends on the calculations done in the console.
I read about MU button on Google. I didn't get the concept behind this mark up thing. I cannot code it as long as I don't understand the concept behind this mark up thing.
roshanali -- Yes, I am familiar with the math error that you described. That kind of error is due to the nature of how floating point values are calculated, and I have seen that error in other things that use floating point. The beauty of floating point calculation is the fact that it can handle very wide ranges of input and output values. It sacrifices accuracy for wide range and fast calculation speed. Usually the error is a very tiny percentage of the correct value which in most cases is acceptable. Many calculators "hide" the error by displaying only a certain number of digits of the answer. For example, if the error happens to be + or - 0.000001, the calculator might display only the first four decimal digits so that the human operator cannot see the tiny error that might show up in the answer! I did a Google search on "floating point calculation error" and it found many good articles that explain the error and why it happens.

Concerning "Mark Up", I think that would only be important to someone who runs a retail business who needs to calculate how much to mark up (increase the sale price) of items in order to make a certain profit. If you don't want to bother with making that button work, you can either just ignore it, or you can "hide" that button by sticking a patch over it that looks like the background color of the calculator. Problem solved! You can also hide the Calculator model number so that no one can look it up on-line to compare the actual one with the one that you made. Just a few things to think about!