Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
numeric string sort
#6
(Jan-23-2018, 02:38 AM)Skaperen Wrote: will it apply itself to language expressions and operators
I think the answer is yes for a good part of it, but you'll need to use the libraries constructors:
>>> x = gmpy2.mpz('2')
>>> x**2000 + x**1000
mpz(11481306952742545242328332011776819840223177020886952004776427...) # I removed some numbers here
Reply


Messages In This Thread
numeric string sort - by Skaperen - Jan-21-2018, 04:53 AM
RE: numeric string sort - by wavic - Jan-21-2018, 05:04 AM
RE: numeric string sort - by Skaperen - Jan-22-2018, 04:08 AM
RE: numeric string sort - by Gribouillis - Jan-22-2018, 07:03 AM
RE: numeric string sort - by Skaperen - Jan-23-2018, 02:38 AM
RE: numeric string sort - by Gribouillis - Jan-23-2018, 06:33 AM
RE: numeric string sort - by Skaperen - Jan-23-2018, 08:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mixed types of numeric data in the statistics module stevendaprano 2 1,343 May-23-2022, 02:15 AM
Last Post: stevendaprano

Forum Jump:

User Panel Messages

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