=begin
Trying to fix issue #2349 for 1.8.8 but running into a small problem: conversion to a float will fail if the value converted corresponds to NaN:
$ ruby19 -r bigdecimal -e "p Float(BigDecimal('NaN'))"
NaN
$ ruby18 -r bigdecimal -e "p Float(BigDecimal('NaN'))"
ArgumentError: invalid value for Float()
This is true of any class for which #to_f returns NaN.
This makes it impossible for BigDecimal("NaN") to be converted to a float in 1.8.
Can anyone think of a reason not to bring 1.8 inline with 1.9 (by allowing NaN)?
=begin
This issue was solved with changeset r26032.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=begin
This issue was solved with changeset r28392.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.