08-14-2008 02:45 PM
08-14-2008 03:16 PM
08-14-2008 07:23 PM
That letter "g" in the string "%#_6g" means LabVIEW is automatically formatting the number between floating point and scientific notation.
To see this, drop a numeric control on the front panel, pop up on it to select its "Format & Precision..." menu item, then switch between "Automatic formatting" and any other format in that list, like "Scientific". When you switch to a new item in that list, switch to "Advanced Editing Mode" to see that the Format string has a "g" in it when it's on "Automatic formatting".
08-14-2008 10:26 PM - edited 08-14-2008 10:29 PM
The %g format system works like this:
If the exponent of the number is between E+5 and E-4 (inclusive), it will format it as a normal floating point (%f) but if the number is outside this range it will have scientific notation format (%e).
08-15-2008 07:08 AM