Show / Hide Table of Contents

    PbGlobal.Round(decimal? x, int? decimals) Method

    .NET Standard 2.x

    Rounds a number to the specified number of decimal places.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

    public static decimal? Round(decimal? x, int? decimals);
    

    Parameters

    x System.Decimal

    The number you want to round.

    decimals System.Int32

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

    Returns

    System.Decimal

    Returns x rounded to the specified number of decimal places if it succeeds, and null if it fails or if any argument's value is null.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon