[Python-ideas] Settable defaulting to decimal instead of float
Paul Moore
p.f.moore at gmail.com
Thu Jan 12 07:20:55 EST 2017
On 12 January 2017 at 12:07, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On 12 January 2017 at 20:30, Paul Moore <p.f.moore at gmail.com> wrote:
>> It's unlikely that there's a practical suggestion here that hasn't
>> been discussed before and rejected
>
> There's one practical decimal-literal-related suggestion which hasn't
> been rejected yet: adding a true decimal literal based on decimal128
> semantics *without* configurable context support (so compile time
> constant folding can work normally rather than all operations needing
> to be deferred to runtime).
AIUI, this would be an explicit decimal literal, something like 1.5D,
rather than simply making all *existing* float literals decimal. Which
isn't what I understood the OP to be asking for.
Anyway, the OP needs to clarify.
Paul
More information about the Python-ideas
mailing list