3 ms·
I don't know if you realise that by converting a double "0.1" into the python decimal of a much larger size, you're bound to get garbage. Edit: I see what you'
by enupten 13y ago
I don't know if you realise that by converting a double "0.1" into the python decimal of a much larger size, you're
bound to get garbage.
Edit:
I see what you're doing now. I didn't appreciate enough how converting to decimals had such unpleasant effects :)
Thanks.
- haberman 13y agoI'm not sure what you're trying to say. 0.1000000000000000055511151231257827021181583404541015625 is the precise value of float(0.1). It is not "garbage" or an approximation in any way. It is exact.