LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

format string to mmmmdd style

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?

 

 

0 Kudos
Message 1 of 12
(2,379 Views)

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]


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 12
(2,375 Views)

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?

 

0 Kudos
Message 3 of 12
(2,372 Views)

Do you want the 'command' as a string?

 

 

0 Kudos
Message 4 of 12
(2,368 Views)

yes

0 Kudos
Message 5 of 12
(2,364 Views)

NumberToFixedString.png

 

Edit: Removed one primitive

 

Message 6 of 12
(2,362 Views)

Thanks

0 Kudos
Message 7 of 12
(2,355 Views)

Fancy. This one doesn't handle the leading zero:

 

Example_VI.png

0 Kudos
Message 8 of 12
(2,352 Views)

I figured he would beat me to it-  I took 1 silly break to fill out my timesheet and -----


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 12
(2,348 Views)

Thank you for your kindly help

0 Kudos
Message 10 of 12
(2,343 Views)