If SwapExchange would return a rate like 0.0000550000 PHP will display as 5.5E-5 thus simply casting to string will result to "5.5E-5". Then Converter passes ratio to the Number class which will throw invalid fractional part exception.
Although this issue has been handled in ExchangerExchange by using sprintf :)
If SwapExchange would return a rate like
0.0000550000
PHP will display as5.5E-5
thus simply casting to string will result to"5.5E-5"
. Then Converter passes ratio to the Number class which will throw invalid fractional part exception.Although this issue has been handled in ExchangerExchange by using
sprintf
:)