There is a second argument for text2num() that lets you set the signifigant digits. For rand(1,10000000) you will probably want to set it to 8. So text2num(n,8) would get rid of that scientific notation for you.
Thank you.
So I would do.
var/x = rand(1,10000000)
x = text2num(x,8))
x = num2text(x) //assuming I want it in text format.
Widh I could have a denotate procedure... built in
Making one may be easy though.
proc/Denotate(x)
//Is there a way to find the size of a number in digits?.
s = numbersize(x)
return text2num(x,s)
Thank you.
So I would do.
var/x = rand(1,10000000)
x = text2num(x,8))
x = num2text(x) //assuming I want it in text format.
Widh I could have a denotate procedure... built in
Making one may be easy though.
proc/Denotate(x)
//Is there a way to find the size of a number in digits?.
s = numbersize(x)
return text2num(x,s)
It would just be easier to try
return text2num( round(x,1), 20)
20 sig-figs ought to work for anything.
Note that I round off the number -- this gets rid of decimals, which will look very ugly with lots of sig-figs.
What I can't go higher than that!?!?!?!?!?!
LoL I probably shouldn't need to.
The number is for a unique identification system.
It is not text2num it is num2text with the sig-figs.