Issue #8295 has been updated by metanest (Makoto Kishimoto).


> IEEE754 ???医???????????? BigDecimal(0.1, nil) ??т?????筝?????????????????????緇??????????障?????鐚?

#=> #<BigDecimal:8011820c8,'0.1000000000 0000000555 1115123125 7827021181 5834045410 15625E0',63(72)>

??????緇??????????????с?????????????????<????c??∴?吟?с????????????
----------------------------------------
Feature #8295: Float ??? Rational ??????鐚???純?с???????逸??罩g∈??? BigDecimal ???????????????罘????
https://bugs.ruby-lang.org/issues/8295#change-38864

Author: metanest (Makoto Kishimoto)
Status: Rejected
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: ext
Target version: next minor


=begin
?????障???Float ???罩g∈??茵?????? BigDecimal ???罨蚊????????????????????障?????

鐚??????号?医???????????鴻????????????с??????????障????????? printf ??? "%a" ???????
??????画;??х???莇潟????????????紊??????с????????鐚?

?????蚊?с??罅???違??綽?荀????????篌吾?違????違????????? 2 ??蚊?羌???絨??亥?号?違???罩g∈???
茵?с????障???????障?????Rational ??????罸???? 2 ??? 5 篁ュ????????違??????????????翫?????
?????c????罩g∈??? BigDecimal ?????????с????障?????

???????????c????翫??????BigDecimal(0.1, nil) ?????????膕上墾?? nil ??????絎?????????違??
罩g∈??????????茵????????????箴水????????????障?????Rational???ゃ???????篁紙???? n ??我??
??????絎??????罩g∈???絖????茵??с???????翫???????????????????????罘???緒???????????違??
Rational(1, 3) ????3 ??我????? 0.1 ??с??鐚????????????????????????????????????障????????
????????障?у??茖???????????障????????

??堺??????≪?ゃ????c?≪??絎?茖?????????潟?若?????
((<URL:https://gist.github.com/metanest/5418814>))
?????????障????????????????ゃ?潟?帥????с?若?鴻????荐???荀????罧???c???????????????障?????
=end



-- 
http://bugs.ruby-lang.org/