Python Forum
shouldn't this raise an exception?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
shouldn't this raise an exception?
#3
from decimal import localcontext, Decimal


with localcontext() as ctx:
    ctx.Emin=-999999999999999999
    ctx.Emax=+999999999999999999

    print(Decimal('1E-999999')*Decimal('1E-99'))
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
shouldn't this raise an exception? - by Skaperen - Dec-07-2021, 07:52 PM
RE: shouldn't this raise an exception? - by casevh - Dec-08-2021, 05:01 AM
RE: shouldn't this raise an exception? - by DeaD_EyE - Dec-08-2021, 08:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  arg and keyword arg conflict: what to raise Skaperen 5 2,852 Jun-22-2020, 12:43 AM
Last Post: Skaperen
  Python 3.701b released yesterday--who should install it and who shouldn't? league55 7 4,558 Feb-02-2018, 08:11 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020