Long integers?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Mipha
Posts: 77
Joined: 27 Jul 2018, 17:08

Long integers?

14 Oct 2019, 17:17

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?
gregster
Posts: 9113
Joined: 30 Sep 2013, 06:48

Re: Long integers?

14 Oct 2019, 17:25

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)
Mipha
Posts: 77
Joined: 27 Jul 2018, 17:08

Re: Long integers?

14 Oct 2019, 17:52

gregster wrote:
14 Oct 2019, 17:25
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)
Looks good. Thanks for posting.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], Hugh Jars, Mateusz53, MrDoge, peter_ahk and 369 guests