Sign in to follow this  
Followers 0
nikosliapis

Large numbers on autoit

4 posts in this topic

Hello everybody.

I have this "strange" problem.

I want to use very large numbers on a script (for example 2^100) or even larger

When i ask Autoit to calculate lets say 2^100 the number that returns is 1.26765060022823e+030

whitch is actually: 1.267.650.600.228.230.000.000.000.000.000

but the real one is: 1.267.650.600.228.229.401.496.703.205.376

I fethermore process that number so the results that i take are falls

I calculated the real number using windows calculator so i supose that my CPU is capable of

processing that kind of numbers.

I would appreciate any solution or advice for my problem

Thanks in advance.


Coding can be fun when you do it your own.

Share this post


Link to post
Share on other sites



Look at the help file's FAQ's under "What are the current technical limits of AutoIt v3?":

Number range (floating point): 1.7E–308 to 1.7E+308 with 15-digit precision

I think there might have been some UDF's that extended this but I can't find any atm :/

Share this post


Link to post
Share on other sites

There is a bigint udf somewhere around here. I remember seeing one.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0