14 Nov
2019
14 Nov
'19
11:15 p.m.
On Fri, Nov 15, 2019 at 9:53 AM Greg Ewing
On 15/11/19 7:39 am, Chris Angelico wrote:
But in your source code, if you type 4.1, you are asking for the floating-point value
The idea of providing decimal literals comes up from time to time, but so far it hasn't gotten anywhere. The problem is that it would make the core interpreter dependent on the Decimal module.
Plus they have their own peculiarities, including that (x+y)/2 might not be between x and y. Also, run-time changes to the decimal context can't affect literals, which could cause very confusing behaviour. ChrisA