Skip to content

Instantly share code, notes, and snippets.

@kalv
Created February 5, 2013 19:55
Show Gist options
  • Save kalv/4717116 to your computer and use it in GitHub Desktop.
Save kalv/4717116 to your computer and use it in GitHub Desktop.
Big decimal is ok
>> require 'bigdecimal'
=> true
>> BigDecimal.new(0.75,2)
=> #<BigDecimal:7fc6fc0f2330,'0.75E0',9(36)>
>> _.to_f
=> 0.75
>> RUBY_VERSION
=> "1.9.3"
>> RUBY_DESCRIPTION
=> "ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin12.2.0]"
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment