Format question

I printed the value 61109.016833, but I'd like value 61,109....



1 Answer


In the format statements below, the number after the comma is the number of digits to print after the decimal.

format /rd 8,0;

print 61109.016833;
// Make the field width 12 characters
// still truncate
format /rd 12,0;

print 61109.016833;

You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy