Browsing this Thread:
1 Anonymous Users
Re: A new calculator? Yes. |
||
|---|---|---|
|
Joined:
2012/4/28 5:42 From Sweden
Group:
Member Posts:
159
![]() |
Well one syninym would be "Estimator"
Posted on: 2012/11/16 22:25
|
|
Transfer
|
||
Re: A new calculator? Yes. |
||
|---|---|---|
|
Joined:
2012/4/28 5:42 From Sweden
Group:
Member Posts:
159
![]() |
Well one synonym would be "Estimator"
Posted on: 2012/11/16 22:25
|
|
Transfer
|
||
Re: A new calculator? Yes. |
||
|---|---|---|
|
Joined:
2012/1/16 5:57 Group:
Member Posts:
199
![]() |
@all
Thanks for the feedbacks (serious and silly one included ^_^), I'm glad this little utility has aroused a little interest. I'll work to fix the issues that mago pointed out and then I'll be back.
Posted on: 2012/11/18 10:39
|
|
Transfer
|
||
Re: A new calculator? Yes. |
||
|---|---|---|
|
Joined:
2012/1/16 5:57 Group:
Member Posts:
199
![]() |
Ok, here's a version that fixes some bugs (not only those reported by magorium).
@magorium: you were wondering how the "%" operator works. That's a good question, my friend, because apparently everybody has its own opinion. I did a bit of tests and the results were: 72 + 5 % = 3.6 (windows XP calculator) 72 % 5 = 3.6 (linux galculator) 72 + 5 % (returns 75.6) (a desk calculator) I chose to the third behaviour. If someone is able to tell me what should be the behaviour of that operator, I'll gladly change accordingly the calculator ![]() There's one bug I'm working on. Since this is a calculator for trivial tasks I'm storing the result in a mere FLOAT, and of course it's easy to pass that limit if you start playing dirty jokes with that calculator. I'm working on how to block the user that plays the smartass.
Posted on: 2012/11/22 15:12
Edited by jman on 2012/11/22 22:56:53
|
|
Transfer
|
||
Re: A new calculator? Yes. |
||
|---|---|---|
|
Joined:
2012/4/28 5:42 From Sweden
Group:
Member Posts:
159
![]() |
In my opinion the first option is the right one. But I think this might be regional problem for different parts of the world. I'm not sure US citicents and european's have the same opinion on what would be the "right" answer.
But I reason like this. 5% of 72 is 3.6 (That's universal )but on the windows calc it is 72+5%=75.6 that would be 72 + 5% (partsum 3.6) = 75.6 whitch is correct. Pressing = should be mandatory to ask for a result and showing the part sum of 5% of 72 makes it clearer that terms you are using in the calculation. The last example is a bit "horrible" to me since it just add 5 to 72 and makes it 77 not ant percent at all. The other two examples are right in mathematical sence.
Posted on: 2012/11/22 20:03
|
|
Transfer
|
||
Re: A new calculator? Yes. |
||
|---|---|---|
|
Joined:
2009/9/27 22:09 Group:
Member Posts:
690
![]() |
According to Google...
72 + 5% = 75.6 not 77 72 - 5% = 68.4 not 67 72 / 5% = 1440 not 14.4 72 * 5% = 3.6 not 360 Also convert hex ffff to binary ![]()
Posted on: 2012/11/22 22:56
|
|
Transfer
|
||
Re: A new calculator? Yes. |
||
|---|---|---|
|
Joined:
2012/1/16 5:57 Group:
Member Posts:
199
![]() |
@droopy & @cavemann
thanks for the suggestions! I'll look into it better. I've amended "75 + 5 %" in my post since obviously "77" is 72+5 (I did some copy and paste without doublechecking).
Posted on: 2012/11/22 23:00
|
|
Transfer
|
||
Re: A new calculator? Yes. |
||
|---|---|---|
|
Joined:
2012/1/16 5:57 Group:
Member Posts:
199
![]() |
@all
here's a new version that should fix the bugs you reported. Thanks!
Posted on: 12/9 12:06
|
|
Transfer
|
||
Re: A new calculator? Yes. |
||
|---|---|---|
Joined:
2004/10/30 17:13 From Ireland
Group:
Member Posts:
1888
![]() |
Quote:
You're using floats and not doubles? IIRC it's easy to come up against float limitations in real world scenarios.
Posted on: 12/9 15:48
|
|
Transfer
|
||
Re: A new calculator? Yes. |
||
|---|---|---|
|
Joined:
2012/4/27 12:29 From Stockholm, Sweden
Group:
Member Posts:
731
![]() |
This really is a cute and usefull little calculator. Perfect for my ZG5. The only thingmissing IMHO (since I know little of math) is an icon :)
Posted on: 12/10 3:03
|
|
|
_________________
"If I only got 640 kb of RAM I could rule the world." |
||
Transfer
|
||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.


Transfer

calc.zip
)






