From: Robert Klemme Date: 2010-04-29T22:15:59+09:00 Subject: Re: flt gem for arbitrary precision 2010/4/29 Giampiero Zanchi : > Robert Klemme wrote: > >> What's the difference (precision? performance?) vs. doing >> >> irb(main):001:0> require 'bigdecimal' >> => true >> irb(main):002:0> BigDecimal("2").sqrt(200).to_s >> => >> "0.1414213562373095048801688724209698078569671875376948073176679737990732478462107038850387534327641572735013846230912297024924836055850737212644121497099935831413222665927505592755799950501152782060571470109559971605970125E1" >> irb(main):003:0> BigDecimal("2").sqrt(200) >> => #> 6718753769 4807317667 9737990732 4784621070 3885038753 4327641572 >> 7350138462 3091229702 4924836055 8507372126 4412149709 9935831413 >> 2226659275 0559275579 9950501152 7820605714 7010955997 >> 1605970125E1',224(224)> >> irb(main):004:0> >> >> ? > > maybe no difference ? > I didn't know of BigDecimal neither > sorry for my ignorance No problem. Maybe the gem you've found is a nice wrapper around BigDecimal with better #inspect and #to_s. In any case I thought it good to know that the standard lib contains something similar. :-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/