RubyCalc - 1.0.4quick & handy calculator |
|
||||||||||||||
|
|||||||||||||||
Feedback Summary:
| This Version: | |||||
| Overall Rating: | Features: | Support: | |||
| Ease of Use: | Quality / Stability: | Price: | |||
Key to Types of Feedback:
Reviews
Troubleshooting
Usage Tips
Developer Notes
Commentary
Featured Reviews
does not maintain state 



- Version: 1.0.4, 4/12/2008 08:02AM PST
(0 of 1 users found this comment useful)
Matt_Neuburg_865Most Recent Replies: View All 1 Replies
- does not maintain state
Caution ! - Version: 1.0.4, 4/11/2008 06:52AM PST
(2 of 2 users found this comment useful)
emaNneercS
I add this note because I had many feedback of confused users :
Caution : Rubycalc is using the Ruby language to perform the computations. The Ruby language have some specificities that you should be aware of, otherwise you may not understand the results.
Examples:
Integer divisions : 5/2 = 2 (remaining 1 = 5%2); but 5/2.0 = 2.5
Power : 5^2 = 7 (binary exclusive OR operation) but 5**2 = 25 (power)
Please refere to a Ruby documentation if you have any doubt.
Caution : Rubycalc is using the Ruby language to perform the computations. The Ruby language have some specificities that you should be aware of, otherwise you may not understand the results.
Examples:
Integer divisions : 5/2 = 2 (remaining 1 = 5%2); but 5/2.0 = 2.5
Power : 5^2 = 7 (binary exclusive OR operation) but 5**2 = 25 (power)
Please refere to a Ruby documentation if you have any doubt.
Here's "irb" in the Terminal:
irb(main):001:0> x = 7
=> 7
irb(main):002:0> 4 * x
=> 28
Here's RubyCalc:
>> x = 7
=> 7
>> 4 * x
=> -:1: undefined local variable or method `x' for main:Object (NameError)
See? RubyCalc doesn't remember variable values. So if I wanted to use Ruby as a calculator, why wouldn't I just use "irb" in the Terminal?