[Python-ideas] Python Numbers as Human Concept Decimal System
Mark H. Harris
harrismh777 at gmail.com
Sat Mar 8 21:25:58 CET 2014
On Saturday, March 8, 2014 2:23:23 PM UTC-6, Mark H. Harris wrote:
>
>
>
>
>> y=x.__round__(15) <====== how to set the round within context so
>> that works for float literals & decimals
>> with localcontext(ctx=None) as cmngr:
>> {snip}
>>
>
>
> Is this possible..?
>
Only do this for float literals. Yes? Set a trap, and choose.
I gotta play with this a bit...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140308/77ab3924/attachment.html>
More information about the Python-ideas
mailing list