LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert value

Is there a way to convert a double  example 900000000000000000000000000000000000009, which is 9.0 E+37 to scientific notation?
 
I am trying to compare values received from a DAQ to limits that I have.
 
 
Thanks!
0 Kudos
Message 1 of 2
(3,199 Views)
Hello FredTest,
 
Yes it is possible. Just try the following code that uses "Formatting functions" and 'Modifiers" (more details in these two help sections)
 

double NumericValue=456.675;
char ConvertedValue[30];
// Eventually get value from a control or anything else
Fmt(ConvertedValue, "%s<%f[e2]", NumericValue);
// Display Converted value in text box, text string ...


Hope this helps you going on on your project

Best regards,

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