From: Fela Winkelmolen on 11 Aug 2010 11:28 > Might give some strange behaviour though: > > "1$".to_f => 1.0 > "nonsense".to_f => 0.0 > "nanotubes".to_f => Nan ? > "inferiority".to_f => Inf ? well, it's not so much "stranger" than the following I suppose "24/7".to_f => 24.0
First
|
Prev
|
Pages: 1 2 Prev: rb_set_kcode equivalent for 1.9.x Next: Error: Bignum too big to convert into `long' |