NevronOpenVision
Nevron.Nov Namespace / NMathF Class / Trunc Method
In This Topic
    Trunc Method (NMathF)
    In This Topic
    Truncates a number to the precision represented by numDigits.
    Syntax
    public static System.float Trunc( 
       System.float value,
       System.int numOfDigits
    )

    Parameters

    value
    numOfDigits
    Remarks
    If numDigits is greater than 0, value is truncated to numDigits to the right of the decimal. If numDigits is 0, value is truncated to an integer. If numDigits is less than 0, value is truncated to numDigits to the left of the decimal.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also