-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 02 Aug 2003 00:41, ts wrote:
> >>>>> "H" == Holden Glova <dsafari / paradise.net.nz> writes:
>
> H> irb(main):002:0> require 'bigdecimal/util'
> H> => true
> H> irb(main):003:0> '111.333333'.to_d
> H> ArgumentError: wrong number of arguments(1 for 0)
>
>
> svg% ruby -rbigdecimal -rbigdecimal/util -e 'p "111.333333".to_d'
> #<BigDecimal:40097ef0,'0.1113333330 0E3',12(16)>
> svg%
>
> svg% ruby -rbigdecimal -e 'p BigDecimal.new("111.333333")'
> #<BigDecimal:40099944,'0.1113333330 0E3',12(16)>
> svg%
>
> svg% ruby -rbigdecimal -e 'p BigDecimal("111.333333")'
> #<BigDecimal:40099958,'0.1113333330 0E3',12(16)>
> svg%
>
>
> Guy Decoux

Ok, thank you for pointing out my user error. What about the Float#to_d, is 
that supposed to be BigFloat::new(selt.to_s) ?

- -- 
Signed,
Holden Glova
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/Kt+10X8w8X71zPcRArRGAJ97Vkwoq5fneg/D8Gyi5iZ1oPZp/wCeOlos
CshnPO+u9Z1seqG7vVyF1SM=
=SNCE
-----END PGP SIGNATURE-----