LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I found a bug In LabView 2009!!!!!

When i am using String to Spreadsheet function i observed that there is not effect of "format string" if i declare it as "%.1f", "%.2f","%.3f" and so on. whatever is the input format (Precision) the output will also be of same type. My input data an 2.33545,2.3566,8.56666. I specified "format string" as "%.2f" but my output was same as input. Is this really a bug or not. Anybody help me

Abhimaniu
0 Kudos
Message 1 of 3
(2,156 Views)

The precision field is only valid while converting from number to string, not in the opposite case.

So this field is disregarded by the Spreadsheet String to Array, while the reverse function Array to Spreadsheet function takes it into account.

The same - at a lower level - is true for Scan from String and Format into String.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 3
(2,131 Views)

It's also documented in the LabVIEW Help in the Format Specifier Syntax page:

 

For functions that scan a string, such as Scan From String and Spreadsheet String to Array, a format specifier uses the following simplified syntax elements.

%[Width]Conversion Code

0 Kudos
Message 3 of 3
(2,098 Views)