Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Using Prime 10, I am trying to write CSV files containing coefficients of polynomials. The written values are limited to 10 characters. How do I increase the number of significant figures in the CSV files?
This was easy in MathCAD v15
Thanks,
Solved! Go to Solution.
In case that you confused WRITECSV with WRITEPRN, her is an example for the use of the system variable PRNPRECISION
Hi,
This value of a is written to csv file with 15 significant digits
Cheers
Terry
Can you provide an example?
I am using the current Prime 10.0.1.0 and can't confirm the problem.
It seems that Prime is writing the numbers with full IEEE precision.
Otherwise I would not know how to control the precision the numbers are output with.
Actually I am not aware of a switch in Mathcad 15 to control the output precision in WRITECSV.
I am aware of PRNPRECISION and also PRNCOLWIDTH but these system variables control the output of WRITEPRN and not that of WRITECSV and both system variables are also valid in Prime even though they are not accessible via the menu.
Here is my test file. As you can see is the file read in after writing is identical to the original within the usual IEEE tolerance. 15 significant digits are preserved.
Prime 10 sheet attached.
Region with "path" definition is disabled. Adjust the variable to your requirements and then enable the region.
In case that you confused WRITECSV with WRITEPRN, her is an example for the use of the system variable PRNPRECISION
Thank you all for the quick responses. I foolishly looked at the written results in Excel. When I followed Werner_E suggestion and read the CSV file back into MathCAD the correct 15 characters were there.Excel view of CSV
MathCAD Routine