AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

increasing integer capacity for arithmetic?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Astrognaw



Joined: 27 Mar 2009
Posts: 26

PostPosted: Mon Oct 26, 2009 3:50 am    Post subject: increasing integer capacity for arithmetic? Reply with quote

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 Smile But I'd still be curious to know!

Edit2: Thanks so much! I did try searching... I suppose I used the wrong terms Smile


Last edited by Astrognaw on Mon Oct 26, 2009 8:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
search user
Guest





PostPosted: Mon Oct 26, 2009 12:04 pm    Post subject: Re: increasing integer capacity for arithmetic? Reply with quote

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 Smile 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

PostPosted: Mon Oct 26, 2009 12:24 pm    Post subject: Re: increasing integer capacity for arithmetic? Reply with quote

search user wrote:
A quick search of the forum (did you even try searching?) found this: long integer arithmetic library .


This is going to come in handy!

Thanks for the link..
_________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group