| View previous topic :: View next topic |
| Author |
Message |
Astrognaw
Joined: 27 Mar 2009 Posts: 26
|
Posted: Mon Oct 26, 2009 3:50 am Post subject: increasing integer capacity for arithmetic? |
|
|
From the help file...
| Quote: | | Commands, functions, and expressions that accept numeric inputs generally support 15 digits of precision for floating point values. For integers, 64-bit signed values are supported, which range from -9223372036854775808 (-0x8000000000000000) to 9223372036854775807 (0x7FFFFFFFFFFFFFFF). Any integer constants outside this range are not supported and might yield inconsistent results. By contrast, arithmetic operations on integers wrap around upon overflow (e.g. 0x7FFFFFFFFFFFFFFF + 1 = -0x8000000000000000). |
Anyway to make it so 9223372036854775807 + 1 doesn't equal -9223372036854775808 in AHK? Or do I just need to use a different language?
Edit! I don't need this anymore But I'd still be curious to know!
Edit2: Thanks so much! I did try searching... I suppose I used the wrong terms 
Last edited by Astrognaw on Mon Oct 26, 2009 8:45 pm; edited 1 time in total |
|
| Back to top |
|
 |
search user Guest
|
Posted: Mon Oct 26, 2009 12:04 pm Post subject: Re: increasing integer capacity for arithmetic? |
|
|
| Astrognaw wrote: | Anyway to make it so 9223372036854775807 + 1 doesn't equal -9223372036854775808 in AHK? Or do I just need to use a different language?
Edit! I don't need this anymore But I'd still be curious to know! |
A quick search of the forum (did you even try searching?) found this: long integer arithmetic library . |
|
| Back to top |
|
 |
TLM
Joined: 21 Aug 2006 Posts: 2926 Location: The Shell
|
Posted: Mon Oct 26, 2009 12:24 pm Post subject: Re: increasing integer capacity for arithmetic? |
|
|
This is going to come in handy!
Thanks for the link.. _________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞ |
|
| Back to top |
|
 |
|