Python Forum
large ints and floats
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
large ints and floats
#2
>>> a
179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791
>>> float(a)
1.7976931348623157e+308
>>> float(a + 1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: int too large to convert to float
Reply


Messages In This Thread
large ints and floats - by Skaperen - Sep-26-2020, 12:51 AM
RE: large ints and floats - by Gribouillis - Sep-26-2020, 12:11 PM
RE: large ints and floats - by wavic - Jan-08-2021, 10:50 PM
RE: large ints and floats - by Skaperen - Jan-09-2021, 03:05 AM
RE: large ints and floats - by Gribouillis - Jan-09-2021, 09:06 AM
RE: large ints and floats - by wavic - Jan-09-2021, 12:27 PM
RE: large ints and floats - by Skaperen - Jan-09-2021, 11:23 PM
RE: large ints and floats - by Gribouillis - Jan-10-2021, 07:40 AM

Forum Jump:

User Panel Messages

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