From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,743 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,739 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,736 Views)

Do you want the 'command' as a string?

 

 

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

yes

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

NumberToFixedString.png

 

Edit: Removed one primitive

 

Message 6 of 12
(2,726 Views)

Thanks

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

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

 

Example_VI.png

0 Kudos
Message 8 of 12
(2,716 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,712 Views)

Thank you for your kindly help

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