Was this page helpful?

Num.Round

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    num.Round(number : num, digits : num) : num
    

    Round to nearest number with given precision.

    Usage Restrictions

    1.9.1 or later

    Parameters

    Name Type Description
    number
    num The number value.
    digits
    num digits to keep after decimal point

     

    Result

    The number result of a rounded value.

     

    Samples


    Output

    To find the rounded number:

    {{num.round(153.978, 0) }} 

     

    154

    To find the rounded number:

    {{ num.round(143.49, 1) }} 

     

    143.5
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by