TRUNC - Returning a Number with Specified Decimal Places

  • Last update:  2023-07-14
  • Overview

    Grammar

    TRUNC(number, num_digits)

    Truncates a number to an integer or a decimal by removing specified decimal places.

    Parameter 1

    number

    Number to be truncated.

    Parameter 2

    num_digits

    Number used to specify the truncation precision.

    Notes

    • The function supports two numerical parameters of which the second can be defaulted.

    Example

    FormulaResultNotes
    TRUNC(8.9)8
    TRUNC(-8.9)-8
    TRUNC(-8.98,1)-8.9
    TRUNC(PI())3


    Attachment List


    Theme: Advanced Data Analyis
    前の記事
    次の記事
    • いいね
    • 良くない
    • 閲覧しただけ

    フィードバック

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    9s后关闭

    反馈已提交

    网络繁忙