Working with PTC Mathcad Prime > Working with Math Expressions > Evaluating Math Expressions > Example: Display of Integer Decimal Results
  
Example: Display of Integer Decimal Results
Decimal Integer Number with <= 15 Total Digits
1. On the Math Formatting tab, in the Results group, set Result Format to Decimal, Display Precision to 3 and disable Show Trailing Zeros.
2. Enter and evaluate a decimal integer with less than or equal to 15 digits:
Click to copy this expression
Click to copy this expression
The result is identical to the number you entered.
3. Select the results and enable Show Trailing Zeros:
Click to copy this expression
Click to copy this expression
Because the results contain no decimal fraction, a decimal point and three trailing zeros appear.
4. Select the results and set Display Precision to 15:
Click to copy this expression
Click to copy this expression
The number of fractional zeros increases to 15.
Decimal Integer Number with > 15 Total Digits
1. Set Display Precision to 3 and disable Show Trailing Zeros.
2. Enter and evaluate a decimal integer with more than 15 digits:
Click to copy this expression
The number has 20 digits, and the result shows the 15 MSD digits - 14 exact digits followed by one approximate digit, followed by five (20 - 15) zeros. The approximate digit is the most significant digit of rounding off 567890 to 600000.
3. Select the result and enable Show Trailing Zeros:
Click to copy this expression
4. Select the result and set Display Precision to 15:
Click to copy this expression
The number of fractional zeros increases to 15.