Long integers?
Long integers?
I am currently trying to make an incremental game in autohotkey. I intend to eventually use high numbers that go above the point where ahk's numbers screw up and go negative (which is around 1e18 I think). Is there a method that I can use to reach higher numbers and how would I go about implementing such a thing?
Re: Long integers?
I think you would need to save them as strings - to still do mathematical operations with them, you could use Avi's Maths.ahk library:
https://aviaryan.com/ahk/functions/smaths (docs)
https://github.com/aviaryan/autohotkey-scripts/blob/master/Functions/Maths.ahk (lib on github)
https://autohotkey.com/board/topic/93516-scientific-maths-infinite-precision-mathematics-library/ (original topic)
https://aviaryan.com/ahk/functions/smaths (docs)
https://github.com/aviaryan/autohotkey-scripts/blob/master/Functions/Maths.ahk (lib on github)
https://autohotkey.com/board/topic/93516-scientific-maths-infinite-precision-mathematics-library/ (original topic)
Re: Long integers?
Looks good. Thanks for posting.gregster wrote: ↑14 Oct 2019, 17:25I think you would need to save them as strings - to still do mathematical operations with them, you could use Avi's Maths.ahk library:
https://aviaryan.com/ahk/functions/smaths (docs)
https://github.com/aviaryan/autohotkey-scripts/blob/master/Functions/Maths.ahk (lib on github)
https://autohotkey.com/board/topic/93516-scientific-maths-infinite-precision-mathematics-library/ (original topic)
Who is online
Users browsing this forum: Bing [Bot], DecimalTurn, macromint, peter_ahk and 345 guests