Show / Hide Table of Contents

    PbGlobal.Truncate(double? x, int? n) Method

    .NET Standard 2.x

    Truncates a number to the specified number of decimal places.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

    public static decimal? Truncate(double? x, int? n);
    

    Parameters

    x System.Double

    The number you want to truncate.

    n System.Int32

    The number of decimal places to which you want to truncate x. Valid values are 0 through 28.

    Returns

    System.Decimal

    Returns the result of the truncation if it succeeds and null if it fails or if any argument is null.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon