Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to output double with fixed precision by CNiFile

Hello again,

System:
- Measurement Studio 6.0
- Visual C++ 6.0 SP5

how to make with CNiFile to have the corresponding instruction from C++ IO library:
cout << setprecision(8) << double(124.2378498749283);

With CNiFile (variable niFile):
niFile << ???? << double(124.2378498749283);

That is, it would save: 124.23784988

Thanks a lot,
Alain
0 Kudos
Message 1 of 2
(2,997 Views)
Good question. We haven't implemented the manipulators for our CNiFile or CNiString classes yet, but it is on our list. Until then, you can use CNiString::Format to format it into a string of any format and then send it to the CNiFile.

Best Regards,

Chris Matthews
National Instruments
Message 2 of 2
(2,997 Views)