Icaruk 14 Posted June 18, 2014 Example: hint format ["%1", 1000000]; Returns 1e+006 (1*10^6). Share this post Link to post Share on other sites
IndeedPete 1038 Posted June 18, 2014 What do you need it for? Since it's shown as proper number you should be able to calculate with it. If you want to print this number on the screen maybe str(1000000) could help or directly put it as string: "1000000". Share this post Link to post Share on other sites
Icaruk 14 Posted June 18, 2014 I want something like this: myVariable = 123456789123456789; Then, I enter a number inside a dialog and compare it with myVariable. Share this post Link to post Share on other sites
IndeedPete 1038 Posted June 18, 2014 And? As I said, it should be working since the expression from the first post is just a different way to present a number. Did you try to compare some values already? I've just tried 123456789123456789 == 123456789123456789 in the debug console an it returns true as expected. Share this post Link to post Share on other sites
Icaruk 14 Posted June 18, 2014 Using: str (1000000); On console I'm getting this "1e+006". Share this post Link to post Share on other sites
das attorney 857 Posted June 18, 2014 Check this post for MulleDK19's solution: http://forums.bistudio.com/showthread.php?163450-Strange-parse-number-behaviour&p=2631498&viewfull=1#post2631498 Share this post Link to post Share on other sites
IndeedPete 1038 Posted June 18, 2014 Ah, good find Das! Share this post Link to post Share on other sites