Excel: TRUNC() Function Not Described Clearly in Manual

Last reviewed: November 30, 1994
Article ID: Q92585
The information in this article applies to:
  • Microsoft Excel for Windows, versions 3.0, 4.0
  • Microsoft Excel for the Macintosh, versions 3.0, 4.0

SUMMARY

On page 438 of the version 4.0 "Microsoft Excel Function Reference," and pages 239-240 of the version 3.0 "Microsoft Excel Function Reference," the description for the TRUNC() function reads

   Truncates a number to an integer by removing the fractional part of
   the number.

A more accurate description is

   Truncates a number to the precision specified in num_digits by
   removing the remaining fractional part. If num_digits is zero or
   blank, truncates the number to an integer by removing the entire
   fractional part.

For example, TRUNC(8.932,2) returns 8.93, but TRUNC(8.932) returns 8.

REFERENCES

"Microsoft Excel Function Reference," version 4.0, 438

"Microsoft Excel Function Reference," version 3.0, 239-240


KBCategory: kbother
KBSubcategory:

Additional reference words: 3.0 3.00 4.0 4.00 results incorrect
truncation truncate


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 30, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.