I am using Excel_RangeSetItem to send some floating point values to excel. Each value is precise to 4 decimal places. When the data is sent to excel, there are a lot of extra numbers tacked on the end.
For example:
0.04902
becomes
0.0490299984812737
The command I am using is:
error = Excel_RangeSetItem (ExcelRangeHandle, &ErrorInfo, CA_VariantInt (x),CA_VariantInt (REPORT_FREQ), CA_VariantFloat(0.04903));
Other setup information:
Windows2k
LabWindowsCVI 5.5.1
Excel 9 (2000)
Any suggestions?
Thanks,
Stephen Hamblin