Statistical programming, matrix languages, and more

How to increase (or decrease) the number of decimal places when print a matrix in SAS IML?

Reply
Occasional Contributor
Posts: 6

How to increase (or decrease) the number of decimal places when print a matrix in SAS IML?

Hello, I would like to display more number of decimal places when print a matrix in SAS IML compared to the default setting. Anyone know how to do this? Thanks!

Frequent Contributor
Posts: 147

Re: How to increase (or decrease) the number of decimal places when print a matrix in SAS IML?

You can apply a SAS format as part of the PRINT statement.  For example

 

  a = magic(7)/49;
  print a [format=12.10];
Ask a Question
Discussion stats
  • 1 reply
  • 182 views
  • 3 likes
  • 2 in conversation