On 20 June 2013 17:58, Muthu Selvan <[email protected]> wrote:
>
> My problem is :
>
> I am running "cucumber" ..This is using library for "rounding decimal"
> values .. its not running ..
>
>  I am getting the below error
>
>  float_add.rb:5:in `round': wrong number of arguments (1 for 0)
> (ArgumentError)
> from float_add.rb:5
>
> Code :
>
> f1=0.5367
> f2=0.8156
> f3 = f2 - f1
> puts f3
> f4 = f3.round(2)
> puts f4
>
> i want rounding the value in ruby when run it from "cucumber" command ..if i
> use rvm use 1.9.3 / rvm use 1.8.7 ..it not working ..

In a terminal run
rvm use 1.9.3
which ruby
ruby -v
irb
1.95.round(2)

Copy and paste the complete results here.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuU%3D-v8aP%2B_DgbWsT8S9pot3HSuoWXrKggKdaaa1bG%3DYg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to