10-26-2012 03:19 PM
I need to formate decimal sting to mmmmdd style. mmmm is the integer . dd is exponent.
such as: 0.5 =5000-4(5000e-4)
100.3=1003-1 (1003e-1)
40.3=4030-2(4030e-2)
which function should I use?
10-26-2012 03:33 PM
Help me understand.
do you want a numeric with a displayed value "5000e-4" (txet.text property) or a string of the characters [5,0,0,0,e,-,4]
10-26-2012 03:42 PM
I need to conver a number to command whose format is mmmmdd. mmmm is the interger. dd is the exponent value
Finally I need 5000-1 which mean value is 500
Or 5000-2 which mean value is 50
Is it clear?
10-26-2012 03:48 PM
Do you want the 'command' as a string?
10-26-2012 03:49 PM
yes
10-26-2012 03:51 PM - edited 10-26-2012 04:07 PM
Edit: Removed one primitive
10-26-2012 03:59 PM
Thanks
10-26-2012 04:01 PM - edited 10-26-2012 04:01 PM
Fancy. This one doesn't handle the leading zero:
10-26-2012 04:03 PM
I figured he would beat me to it- I took 1 silly break to fill out my timesheet and -----
10-26-2012 04:06 PM
Thank you for your kindly help