Show / Hide Table of Contents

    Class NumberExtensions

    The number helper.

    Inheritance
    object
    NumberExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Code.Library.Extensions
    Assembly: Code.Library.dll
    Syntax
    public static class NumberExtensions

    Methods

    | Improve this Doc View Source

    GetFirstNDigits(int, int)

    Gets the first n digits.

    Declaration
    public static int GetFirstNDigits(this int number, int n)
    Parameters
    Type Name Description
    int number

    The number.

    int n

    The n.

    Returns
    Type Description
    int

    The int.

    | Improve this Doc View Source

    GetNthDigit(int, int)

    Gets the nth digit.

    Declaration
    public static int GetNthDigit(this int number, int n)
    Parameters
    Type Name Description
    int number

    The number.

    int n

    The n.

    Returns
    Type Description
    int

    The int.

    • Improve this Doc
    • View Source
    Back to top Generated by Abhith Rajan using DocFX