LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write 14.316523E-06 to spreadsheetfile

I want to write a string of format %f (for ex. 14.316523E-06...)to a spreadsheet file, the result I get is 0.000014. So the result is limited to 7- digits and this way I lose some important precision. I use the write to spreadsheet file vi with format %f and I changed the representation to EXT but without any result.
Anybody?????
0 Kudos
Message 1 of 4
(2,901 Views)
Hi,

use %e as string format instead, eventually you can set the number of digit of precision ex: %.3e

Good luck,

Alberto
0 Kudos
Message 2 of 4
(2,901 Views)
f_d wrote:
> I want to write a string of format %f (for ex. 14.316523E-06...)to a
> spreadsheet file, the result I get is 0.000014. So the result is
> limited to 7- digits and this way I lose some important precision. I
> use the write to spreadsheet file vi with format %f and I changed the
> representation to EXT but without any result.
> Anybody?????

You should be using %.9e to get scientific notation. (eg. 1.23456789e+26)

Have a look in the help under Format Specifiers Syntax Elements


--
Remove "spamkill." when replying to this message
0 Kudos
Message 3 of 4
(2,901 Views)
> Have a look in the help under Format Specifiers Syntax Elements
...
or make an 'format into string' function, rigth click on it and togle 'edit
format string' ... I think that is the easies way to work with format
strings


/ Peter
0 Kudos
Message 4 of 4
(2,901 Views)