03-03-2009 05:41 PM
I'm trying to format a number to come out as xxx.xx. For example, 5.32 would come out as 005.32. I thought this was as simple as using the format specifier %03.2f in the format into string function, but this doesn't seem to work with LabVIEW 8.6.1. I don't have older versions installed but I thought his used to do the trick.
Is this a bug, or am I just confused?
Solved! Go to Solution.
03-03-2009 06:19 PM - edited 03-03-2009 06:20 PM
Are you connecting like this?
anyway, its in version 8.6
03-03-2009 07:08 PM
Parny wrote:Are you connecting like this?
anyway, its in version 8.6
That won't work. If he had 999.11 it would show up as 00999.11 Not what he wants.
Mike, try format specifier of %06.2f. That is a precision of 2 and a minimum field width of 6 (2 for the decimal part, 1 for the decimal point, leaves 3 for the integer part of the number)