On Thursday, 20 June 2013 09:17:51 UTC-7, Colin Law wrote:
>
> On 20 June 2013 17:12, Muthu Selvan <[email protected] <javascript:>> 
> wrote: 
> > 
> > 
> > On Thursday, 20 June 2013 00:49:25 UTC-7, Colin Law wrote: 
> >> 
> >> On 20 June 2013 08:41, Muthu Selvan <[email protected]> wrote: 
> >> > I will do that  .. 
> >> 
> >> You will do what?  You are still top posting so I have no idea what 
> >> question you are answering. 
> >> 
> >> > 
> >> > Please check the rvm use O/ P : 
> >> > 
> >> > mselv2m1:Downloads mselv2$ gem environment 
> >> > RubyGems Environment: 
> >> >   - RUBYGEMS VERSION: 1.8.25 
> >> >   - RUBY VERSION: 1.9.2 (2012-04-20 patchlevel 320) 
> >> > [x86_64-darwin12.4.0] 
> >> 
> >> So that is showing 1.9.2 as expected.  So is your problem fixed?  If 
> >> not then please explain the problem again. 
> >> 
> >> Also please just reply to the list, there is no need to send me a copy, 
> >> thanks. 
> >> 
> >> Colin 
> > 
> > 
> > 
> >   Coin , 
> > 
> >   Really sorry for posting on top ... 
> > 
> >   My problem is not solved ... 
> > 
> >   Please find the gem environment detail and rvm use command detail 
> > 
> >   mselv2m1:Downloads mselv2$ gem environment 
> > RubyGems Environment: 
> >   - RUBYGEMS VERSION: 1.8.25 
> >   - RUBY VERSION: 1.9.2 (2012-04-20 patchlevel 320) 
> [x86_64-darwin12.4.0] 
> >   - INSTALLATION DIRECTORY: /Users/mselv2/.rvm/gems/ruby-1.9.2-p320 
> >   - RUBY EXECUTABLE: /Users/mselv2/.rvm/rubies/ruby-1.9.2-p320/bin/ruby 
> >   - EXECUTABLE DIRECTORY: /Users/mselv2/.rvm/gems/ruby-1.9.2-p320/bin 
> >   - RUBYGEMS PLATFORMS: 
> >     - ruby 
> >     - x86_64-darwin-12 
> >   - GEM PATHS: 
> >      - /Users/mselv2/.rvm/gems/ruby-1.9.2-p320 
> >      - /Users/mselv2/.rvm/gems/ruby-1.9.2-p320@global 
> >   - GEM CONFIGURATION: 
> >      - :update_sources => true 
> >      - :verbose => true 
> >      - :benchmark => false 
> >      - :backtrace => false 
> >      - :bulk_threshold => 1000 
> >      - "gem" => "--no-rdoc --no-ri" 
> >   - REMOTE SOURCES: 
> >      - http://rubygems.org/ 
> > 
> > ---------------------------------- 
> > 
> > mselv2m1:Downloads mselv2$ rvm use 1.9.2 
> > Using /Users/mselv2/.rvm/gems/ruby-1.9.2-p320 
> > 
> > --------------------------------------------------------- 
> > 
> > mselv2m1:Downloads mselv2$ gem environment 
> > RubyGems Environment: 
> >   - RUBYGEMS VERSION: 1.8.25 
> >   - RUBY VERSION: 1.9.2 (2012-04-20 patchlevel 320) 
> [x86_64-darwin12.4.0] 
> >   - INSTALLATION DIRECTORY: /Users/mselv2/.rvm/gems/ruby-1.9.2-p320 
> >   - RUBY EXECUTABLE: /Users/mselv2/.rvm/rubies/ruby-1.9.2-p320/bin/ruby 
> >   - EXECUTABLE DIRECTORY: /Users/mselv2/.rvm/gems/ruby-1.9.2-p320/bin 
> >   - RUBYGEMS PLATFORMS: 
> >     - ruby 
> >     - x86_64-darwin-12 
> >   - GEM PATHS: 
> >      - /Users/mselv2/.rvm/gems/ruby-1.9.2-p320 
> >      - /Users/mselv2/.rvm/gems/ruby-1.9.2-p320@global 
> >   - GEM CONFIGURATION: 
> >      - :update_sources => true 
> >      - :verbose => true 
> >      - :benchmark => false 
> >      - :backtrace => false 
> >      - :bulk_threshold => 1000 
> >      - "gem" => "--no-rdoc --no-ri" 
> >   - REMOTE SOURCES: 
> >      - http://rubygems.org/ 
> > 
> > 
> > Please let me know if you required any more details . 
>
> What problem are you seeing?  gem environment is showing ruby 1.9.2 as 
> expected. 
> No-one can help unless you explain what your problem is. 
>
> Colin 
>


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 ..

Please let me know How to round the decimal value in ruby ..? 

Thanks .
Muthu Selvan SR 
 

-- 
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/73f55469-b0e8-4a9f-8802-61fea6cd5960%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to