This widget could not be displayed.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string formatting

Solved!
Go to solution

I have different strings in my project, for example:

 

12.4432615352312

 

I want all these strings to have 2 decimal, so 12.44; How can i do this? I was looking "Format Value Function" and also "format into string" (format string), but without sucess;

 

thanks

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 1 of 4
(2,275 Views)
Solution
Accepted by topic author hlod

Here is one real easy way

 

 

Although there is probably a method using reg expressions which does it without the intermidiatry change to a double.

 

Craig

LabVIEW 2012
Message 2 of 4
(2,268 Views)

You can use something like this.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
Message 3 of 4
(2,262 Views)

Oo nice hint 🙂

 

thanks, problem solved :;)

_________________________
Rookie; LV 2011 on WIN 7
Message 4 of 4
(2,259 Views)