Large values being changed? (Surds?)
Hi,
How i can stop large values turning into surds? (5.23344e+006)
If you create a very large value (involving decimals), then tell it to be displayed in a counter or similar it gets changed into the form- x.xxxxxe+00x - When i then applied this value in my game the decimal point didn't move, changing my value thats meant to be in the thousands to 10.xxx
Is there any way i force MMF to keep it in right form?
What I'm actually trying to do is add 2 numbers that are a bit like this-
500000+0.8756334 ---> I only need it to 2 decimal places, infact, I'd rather if it was rounded to a couple of decimal places (or even 1 decimal place). But I DO NOT want MMF to round it, and I dont want MMF to change it into that crazy form above :)
Can anyone help?
Re: Large values being changed? (Surds?)
You might need MMF2 Developer and the Double-Precision Calculator extension if you want to work with such large numbers.
Re: Large values being changed? (Surds?)
Hmmmm... Well I dont actually need the large number in the end, I only need it to add 2 large numbers, then round them to 2 decimal places or so produce the end result. Is this not possible with MMF2 standard? :O
My calculator can do that... I'm surprised that MMF2 cant XD
Re: Large values being changed? (Surds?)
I'm sure if you uploaded an example somebody will help. If precision isn't a big worry for you and your numbers aren't *that* massive it should be fine.
Re: Large values being changed? (Surds?)
It's not surds, it's scientific notation.
5.23344e+006 == 5.23344 x 10^6 == 5,233,440
The number is intact, MMF just doesn't want to display it in full.
EDIT: Your calculator will do this too, but generally only for numbers above 10 digits unless you specifically tell it to.
EDIT2: Surds are numbers left in square-root form, either because they can't be resolved (sqrt(-1) or sqrt(a) with a unknown) or just for clarity.
Re: Large values being changed? (Surds?)
Thanks for clearing that up Dynasoft.
I did think that it was that MMF didnt want to display it, but can i force it to display it?