Uplink Posted November 11, 2008 Share Posted November 11, 2008 Check this out.... $num = 123456789123456789123456789 MsgBox(0,"",$num) heres the output: 9223372036854775807 i wonder whats wrong? kindly help me... Link to comment Share on other sites More sharing options...
AlmarM Posted November 11, 2008 Share Posted November 11, 2008 Hmmm, wierd. This sould work: $num = "123456789123456789123456789" MsgBox(0,"",$num) AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
jercfd Posted November 14, 2008 Share Posted November 14, 2008 I have seen this problem and have reproduced it many times. It seems to be a AutoIt limitation with numbers. Link to comment Share on other sites More sharing options...
martin Posted November 14, 2008 Share Posted November 14, 2008 (edited) Check this out.... $num = 123456789123456789123456789 MsgBox(0,"",$num) heres the output: 9223372036854775807 i wonder whats wrong? kindly help me... Read the help for frequently asked questions. 15. What are the current technical limits of AutoIt v3? Here are details of the current technical limits of AutoIt. Please note that some of the limits are theoretical and you may run into performance or memory related problems before you reach the actual limit. Maximum length of a single script line: 4,095 Maximum string length: 2,147,483,647 characters Number range (floating point): 1.7E308 to 1.7E+308 with 15-digit precision Number range (integers): 64-bit signed integer <-------------------------------------------------much smaller than your number! Hexadecimal numbers: 32-bit signed integer (0x80000000 to 0x7FFFFFFF) Arrays: A maximum of 64 dimensions and/or a total of 16 million elements Maximum depth of recursive function calls: 5100 levels Maximum number of variables in use at one time: No limit Maximum number of user defined functions: No limit Maximum number of GUI windows: No limit Maximum number of GUI controls: 65532 So if you had this instead it would give a sensible answer $num = 123456789123456789123456789.0 MsgBox(0,"",$num) Edited November 14, 2008 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Uplink Posted November 27, 2008 Author Share Posted November 27, 2008 Read the help for frequently asked questions. So if you had this instead it would give a sensible answer $num = 123456789123456789123456789.0 MsgBox(0,"",$num) Oh... i get it... datatype range problem... is there any posible solution? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now