3 ms·
Not only is this technically wrong, but Python has a decimal module for performing these kinds of calculations. It uses floats/doubles for the native float typ
by dekhn 8y ago
Not only is this technically wrong, but Python has a decimal module for performing these kinds of calculations. It uses floats/doubles for the native float type which produces exactly the type of results you see above.
- darkhorn 8y agoWhat is the result of 3/2? In R it is 0.5. In Python it is 1.