--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Xj8YzOKl2oAJ.
For more options, visit https://groups.google.com/groups/opt_out.
Cheers,
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Xj8YzOKl2oAJ.
For more options, visit https://groups.google.com/groups/opt_out.
This is my console code
irb(main):001:0> (2.08*100).round / 100.0
=> 2.08
but i what i was expecting is like if i give input as 2.08 i need my output as 2.1 and i give i/p as 2.04 i need my output as 2.0