Macro Express Forums

# How do I set and work with Large Integer's?

## Recommended Posts

Using latest version of Pro, I only see Set integer. How do I declare and work with a Large Integer?

##### Share on other sites

From the Variables tab choose Add then choose Large Integers Variables from the dropdown list.

According to their help file these are signed variables in the -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 range. Zowie!

Thanks joe.

##### Share on other sites

• 2 weeks later...

what about floating numbers like: .0230982039223 ?

##### Share on other sites

what about floating numbers like: .0230982039223 ?

Decimal variables handle those

##### Share on other sites

doesnt work.. it shortened.. i try to output the following decimal in a message: .2938928392839292382

it outputs as 4.35E-31

see here: http://prntscr.com/40t753

how can one solve this issue? i have to sum a couple of these numbers up and paste it back out, but the output is shortened.

##### Share on other sites

Like others, MXPro rounds anything over 16 significant digits down to 16 ... if it can.

If it cannot then it will display the number as an exponential.

doesnt work.. it shortened.. i try to output the following decimal in a message: .2938928392839292382

The number you have here in your message is not what is in your picture. That number is .000000000000000000000000000000456 and since it cannot be rounded to 16 digits, MXPro displays it as exponential ... which is correct.

The number you have here will be rounded to .293892839283929 in the message box.

Also bear in mind that rounding and display patterns are only for visualization, not for the math itself. The math itself is accurate. For example if you were to display the subtraction of .000000000000000000000000000000123 from that number in your picture then the message box would display 3.33E-31, which of course is correct.

##### Share on other sites

Joe,

Zowie indeed! But trivially small compared when compared with large numbers from the maths world. For example, a few months ago the largest known prime number was discovered and has 17,425,170 digits.

http://en.wikipedia.org/wiki/Largest_known_prime_number

--

##### Share on other sites

Nuts. I did not know that someone beat me to it.

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.