Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Large Numbers like math.Big? #225

Open
Ruegus opened this issue Mar 9, 2022 · 1 comment
Open

Support Large Numbers like math.Big? #225

Ruegus opened this issue Mar 9, 2022 · 1 comment

Comments

@Ruegus
Copy link

Ruegus commented Mar 9, 2022

e.g. for 6**123456 the answer should be:

27590995038499340323954927344747946357782317701145586513170491565477313140861969403479492716118595994008529844022917593739508180560186992735561522276727122168822770335877912749101660918608128375585443251437793546556707893798999084094784036181167500612567295426882596797108983876251531320558218101748490215144788303752274258640265850901117170520954372893179353934377694403969290747390844707991174581137069468484100942322592774847931076573240705818934791963586778276525004093983170847533662137598544266266412771666347507499739874024418786319442476843167461113037048026572750868829294140372859918675659792489074313564690590888509277385364909697945885429288067049776727506224208498207001311359885396700270022983099356698741663703910962278071942974643278728104317096306595195044738482309993662215727125569922954072774993328789698723455303191416038467021391247380355205319747240362407851807109385688116190330131268408209008954796776146233325580680071703932377017578974465709484414971699364032002394837254131211488027250418468505945845175273390530170827170419443313022852245234478302526420440929765889867053677595049787564538340818210566135102770002164389669818601682935849987294902192159796071563438039181036210988482787426303814166021915285425110618923450305894876778669380205216687221847828191732217231748850056945571037829836301266206310312139619951817514202740932736934430877230495937563958306180420134560075944057325376955446426748695907289661664464421437323938926754833589530266288623537572323407312754942093541597258327768679578492914174373729542333183685272842989055825752278485665948117867702948219121129248990053945758208256441579300983880372576102146630375902245727270291944462696774912963014758365702063484440585105583480763881800056909034685156324549505471455901681557279059891474826655294996726071886921131683815318184177853343039950803791324868751916442761585009819220400748321727436409778496601862778952233803685572862246187235675426975697337829338805471273536234267825477479854242014431743598278466179669438266022152898594914813538290730851479151363816413546606569295600814944252429364393996725545266424922194422529900693470447122274939490871953027049080151954323507759338933717163247278272766340439896817390123168467115220553629553810923359058262096196470614252930628489039227056345766627375509672038937703101007230455253171409307215674145734731653991795541749197936319639462406727118575923768381236581935915235999742615065527100051889008321050153739853694625257521855407940211238832684004906296002222884614294496556660264453876123815927325439353514492978926324089831988060956358685275272852334059840413382645088916012232117747335748940380828603309316319405594183433726399444709023112057334616266056955574330631955807899483127927503607614122649290678418592363530227429726642432888506767968707697467371498593413555610672216798449950664639168319675291772607548997962844202366052575677639641220940430640082670904888503514040756937037152893336365509915167052592226240930800913319500684825366758967833008259892389863950555471705063884973625115468835046178776916666448401162265342032142545918469596539537160445352235735352851101350999734873136042336448185356975367660589837077885274155835069433464395883382181493402397251034615820388663224273410247722338191841086800519334014612783114793395128652678658114151674549875988299109618870515932278883457407117689649383566537588208465930919655260864684874634519482818260963670654961773142637532578062601511417888605937328909116853051853655350027090210480018056064992683365546726345219346493580025704003069608195310152925728600253766914107690732321813529170832853634405766659284220642345773186628440380796403740822796284106022233167988044111400392983029584332030878093443005752393256670930957259562507637570176060960618310746719824796473450612955137601465691890134928010479517691249812213617241277567879206668729374235380341387598382000181299598373937116781393168649345085788941935422600343975957713201243386348132780609802545779533348572934218202815747737004822236523547021833115911868984708890629928597899516971105805717614049100050066717964841418868900283885485140105035205794982169500316264084027455352187735976134117933402735726856730983280808453178949773331554307783170227939972430177396207336603864532526401060962947108779394689172848417374051396742515945003533163386375432532373074421358323323288737991678292815538292885572949000596266307595033364799122690448428755377478274695992260044136012332298991444368939711749680834021013146565747259749034070037580145029897897906082699009622314970632749572877014539241483586730732811050785992935945292296032344078285457428281439037555907291273119283681416186616603167288235629624262569422837423677847517811667396019447702232897450719694010500730485737537446141013019105425941523141870096317843172112902382676930638486757953650281522796671414982038632023413266002898366043289567073475772720120240127824806490248699147324862230979432175018763860980628453738202149817026054683964489248234796624581595943247074990431903128413498090860267442496345618214595529481603029111038246487113854430144658018529201429640753131573337820323494541275173514389006749986869792649353049634791565799262310042700786629890578785181257887700299028661406216603661631443292752906614569490552088445592419914760908443488856761702142555309296742276530313729740979367172544313963522726610983566728843535309133636330911192205944563404190425263067689923960292374924280239550951133221023661571848784814978996207505011150860413401003500725831800989465837634780764290485111974943009019840735991477170329207043531087874503880748778477206395320421645250166369251342442510378277285735222124636947848236617557187417311596609150486805406859371430286653041490648949291453828720478255411730335520760985204704546135782629454117457936896702401997428375297777279254159361554883710321349448907521889920595665998644162778361601570559399549616456469303149649007075073565881542795189071891810057188447302968879683523763155490696763239135017633341011571203755588427400837209642251851403873190694032782188357543585199999886353225885014269584803668849360792578884325128647994435813671859972280989796186267732508805864471825812972308677740211471520447151612446535717670288292586807525345251864127509157713778890999014794896068264746453069427554657236989085902358370262736542694143879744827294714259778600845155218955704470114759126658162824681411229710644230157633303811734147070223377006868679568482507463028093214930235207736303952749021169801591839900252552773392388601101266680842615235870480027912492218016086268165088867889951092734539952079527110501299168601235812029234554607595435020266779673251153931524283998727341085243707341531190052452440897238402620672030087634051124927445332063024189947408943336816932393747352336757377381484626867712924126639679802185461065080704897415149926970041489444298902872848139813274985382771175345490485707546750989710835388613977530270019741147980372882938210500949754745238783645634783714268617326298589816477899451117322531769200962207785980830785631521442041477660768406004107557535279907396048164150977240879164743875229325825334330280654958553855276599803529405078821190132309738399273724227619645959050390300622750248624773890929856540311056975795857061485260482391787677522681021506299878999727451894937784232881942447893999023556999603659604924691453117954964563388306034677939776830267533505534284230694818718897033080707014217496400853067167420834602408804993504320229920171423380804016199224863524521166772143228561087864757632390308611042019906900708611190379364243337001397410152718863011645641372441511884564329801219071320065769455466004080146223478905902204320254560885454847741542074540494386046755887575137214079385829703017264318074330415862734343354031605713743612795252744334109735311133046859307802836176531826146617036594731148590564450950643239559324807856752647754816330024719325844011159762795991844057679259426452087880747268541706953046018758412877816902710944790165789809409370615801230580818034994375036939316267512313999881922445981028287412841044444986834321928964514903226825018333663308435696099838941457690032028999274689477435432527141026019388553739365377740995005671694898905019524365607328576894781030343994056948206835844000080371431485021071288063749431601495600810902922570915444716302696308995158925983960945973002110613329122325933133858690309330645492225313959868672894159038383777849558729447664749680144053375779754442811179949396126610948711431924708198516443590854723392699537590506270788509663973123150712281116508389293829742454957576179361970851542434085763168043091658110960297019833828972907307110186242751609220023381435973405021746194744407363419213963063192124979815985056775880660504311958545510706474483419728076207702797992065312716050039716007443500599183814910014651974334006325990513994968599667895002100515461756774521410365313331269932115213545304132548171759013831233043125059860046524529300003732779610456427456481218472903282766993724904405308832689369124734063192295788853516181746671744021973762865815000205763392390269478406595348353163815321142079540019846699512263616304741074080278961877208564204802886934572822301422718180851605376083688356587481844602437891483835914223805358605493827902603360356134564846060215654610181855526073800095608261470511200047281051229302848032483565348756926142598807030895404666215177389533976411513049631627254144999650461725393042512407287000021030361806202204592160546387467828045852003848250917754544123883446532210483960233916743209559819718332245058992969210650450443583747808216479588980761512151246594404599141225002643685192644245596043466748773344440596792839410988639141852837163810244870714460640704284483307434632096248351976635918338931022470565704015603136466361968782333025487365548034586608984977994551869622745811567876463205428369917419379615748861336398629258631984398535757319112043215039655562824299986691185187190910752956963188099647404208373237221950864615828007081276323398934470415223490015857259424720406290723025573397339682505249818024911117841887981779712626825755214361289465954764305282516743348781857359744085931345827987526711988771358982927493608516071874140265594051306254099396068885871791376761890304190950866381483258461554587539017836816305500671635174437231806468349420210127699866208030735002445667757719104794456503199457375805237689485355781756113017492367251417089873594396435424515162309940095939582753333483631235223851885992639316641363798797000995762693256978488939389974468089512510845210567925673842073852965568705131677697511605651290630406290009062579459738147329785490384698869893790126869014874622711850938766193614340259915901834549818680069256678322466043567666974435465176525427600277423713547288782...

But it returns:

  • for float: "+Inf"
  • for int: -9223372036854775808
@antonmedv
Copy link
Member

I think it’s possible to create via extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants