Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
- require 'bigdecimal'
- 10000.times do
- # _sometimes_ raises TypeError: #<Class:0x000000277a3a38> can't be coerced into BigDecimal
- (BigDecimal.new('1001.10')**0.75).floor
- putc '.'
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement