3 ms·
use Decimal('0.1'), otherwise you will first generate a floating point number (with accuracy loss) and the convert it to a decimal.
by karl42 11y ago
use Decimal('0.1'), otherwise you will first generate a floating point number (with accuracy loss) and the convert it to a decimal.