Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

Excel Report - incorrect results when writing floats

$
0
0
double d = 5.1;
float f = 9.2;

// (open an Excel worksheet)

// This writes the correct value
ExcelRpt_SetCellValue(worksheet, "A1", ExRConst_dataDouble, d);

// This writes junk -- 1.9E+19 or something similar
ExcelRpt_SetCellValue(worksheet, "A2", ExRConst_dataFloat, f);

 


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>