cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Translate the entire conversation x

Prime 10 write csv file with 15 significant figures

dbowman-2
4-Participant

Prime 10 write csv file with 15 significant figures

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,

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:Werner_E)

In case that you confused WRITECSV with WRITEPRN, her is an example for the use of the system variable PRNPRECISION

Werner_E_0-1741288053709.png

 

View solution in original post

4 REPLIES 4

Hi,

This value of a is written to csv file with 15 significant digits

Cheers

Terry

 

Werner_E
25-Diamond I
(To:dbowman-2)

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.

 

Werner_E_0-1741286495476.png

Prime 10 sheet attached.

Region with "path" definition is disabled. Adjust the variable to your requirements and then enable the region.

 

Werner_E
25-Diamond I
(To:Werner_E)

In case that you confused WRITECSV with WRITEPRN, her is an example for the use of the system variable PRNPRECISION

Werner_E_0-1741288053709.png

 

dbowman-2
4-Participant
(To:dbowman-2)

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 CSVExcel view of CSVMathCAD RoutineMathCAD Routine

Announcements


Top Tags