On 3/10/2014 7:02 PM, Nick Coghlan wrote:
My take is that we're down to two main options:
Stefan: use the existing decimal type, change default context to Decimal64, round all decimal literals to current context
Oscar: new fixed width decimal64 builtin type, always uses Decimal64 context (allowing constant folding), interoperates with variable context decimal.Decimal values (producing a decimal.Decimal result)
I lean towards Oscar's proposal, as it removes the hidden context dependent behaviour and makes the builtin decimals true constant values.
Ditto for me. An everyday replacement for binary floats should be about as simple as binary floats, and simpler in the sense of having less surprising behavior.
-- Terry Jan Reedy