Python Forum
Parsing Large Numbers Question
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parsing Large Numbers Question
#4
Hi post-opener.
Back to your question, in order to compute 431.1**1.9907 (as per your above example) with 60 significant figures, the code can be strongly simplified as shown underneath. Cheers
>>> from mpmath import *
>>> mp.dps = 60
>>> a=float(431.1)
>>> b=float(1.9907)
>>> c= power(a,b)
>>> print (c)
175652.554505641455099365134478793074168970888475271620418457
Reply


Messages In This Thread
Parsing Large Numbers Question - by amyvaulhausen - Mar-23-2019, 06:50 PM
RE: Parsing Large Numbers Question - by samsonite - Mar-23-2019, 09:00 PM
RE: Parsing Large Numbers Question - by samsonite - Mar-24-2019, 07:03 AM
RE: Parsing Large Numbers Question - by DeaD_EyE - Mar-24-2019, 07:36 AM
RE: Parsing Large Numbers Question - by samsonite - Mar-24-2019, 08:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Parsing large JSON josvink66 5 730 Jan-10-2024, 05:46 PM
Last Post: snippsat
  parsing question ridgerunnersjw 7 5,152 Oct-10-2020, 09:04 PM
Last Post: ridgerunnersjw
  parsing question ridgerunnersjw 3 2,035 Oct-06-2020, 02:06 AM
Last Post: micseydel
  string parsing question ( I think) diggee17 4 3,072 Jul-24-2019, 02:37 PM
Last Post: diggee17
  Print Numbers starting at 1 vertically with separator for output numbers Pleiades 3 3,784 May-09-2019, 12:19 PM
Last Post: Pleiades
  Perfect Number formula in Python Question an Mersenne Numbers Pleiades 5 6,131 May-16-2018, 04:56 PM
Last Post: Pleiades
  I'm dividing large numbers of about 25 million digits I need to retain decimal format Pleiades 2 3,215 Apr-26-2018, 07:50 AM
Last Post: Pleiades
  dividing large numbers charlemayn 7 9,635 Feb-13-2018, 06:03 PM
Last Post: wavic

Forum Jump:

User Panel Messages

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