Alienchild Posted June 20, 2014 Report Share Posted June 20, 2014 Using latest version of Pro, I only see Set integer. How do I declare and work with a Large Integer? Quote Link to comment Share on other sites More sharing options...
joe Posted June 20, 2014 Report Share Posted June 20, 2014 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! Quote Link to comment Share on other sites More sharing options...
Alienchild Posted June 21, 2014 Author Report Share Posted June 21, 2014 Thanks joe. Quote Link to comment Share on other sites More sharing options...
stackexchange Posted July 3, 2014 Report Share Posted July 3, 2014 what about floating numbers like: .0230982039223 ? Quote Link to comment Share on other sites More sharing options...
Alienchild Posted July 3, 2014 Author Report Share Posted July 3, 2014 what about floating numbers like: .0230982039223 ? Decimal variables handle those Quote Link to comment Share on other sites More sharing options...
stackexchange Posted July 9, 2014 Report Share Posted July 9, 2014 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. Quote Link to comment Share on other sites More sharing options...
joe Posted July 9, 2014 Report Share Posted July 9, 2014 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. Quote Link to comment Share on other sites More sharing options...
terrypin Posted July 10, 2014 Report Share Posted July 10, 2014 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 --Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
joe Posted July 10, 2014 Report Share Posted July 10, 2014 Nuts. I did not know that someone beat me to it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.