Article ID: 124423 - Last Review: November 15, 2004 - Revision: 4.0

Works: How to Truncate Numbers in Works Without Rounding

This article was previously published under Q124423

On This Page

Expand all | Collapse all

SUMMARY

To truncate numbers without rounding in a Works for Windows spreadsheet or database, use one of the following formulas
Spreadsheet: =INT(<Value or Cell Reference> * 10^<Digits>)/10^<Digits>

Database: =INT(<Fieldname> * 10^<Digits>)/10^<Digits>
where <Value>, <Cell Reference>, or <Fieldname> is the number to be truncated. <Digits> is the desired number of places to the right of the decimal point.

NOTE: The caret ^ (SHIFT+6) is the exponential operator.

EXAMPLE

To truncate the number 12.34567 to two digits in a spreadsheet, do the following.

  1. Create a new Spreadsheet.
  2. In cell A1, enter the number 12.34567.
  3. In cell B1, enter the formula =INT(A1*10^2)/10^2.
The value in B1 is 12.34. Note that the value did not round to 12.35.

MORE INFORMATION

Works for Windows has a Round() function that will round a number to a specific number of digits. To truncate the number without rounding, the formula above must be used. For example, rounding the number 123.456 to two significant digits equals 123.46, while truncating equals 123.45. Truncating can be useful when you want to avoid errors in calculations caused by rounding.

APPLIES TO
  • Microsoft Works 2.0 Standard Edition
  • Microsoft Works 2.0a
  • Microsoft Works 3.0 Standard Edition
  • Microsoft Works 3.0a
  • Microsoft Works 3.0b
  • Microsoft Works 4.5 Standard Edition
  • Microsoft Works 4.5a
  • Microsoft Works 4.0 Standard Edition
  • Microsoft Works 4.0a
Keywords: 
kbhowto kbinfo KB124423
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations

 

Related Support Centers