Function fracPart

  • Returns the fractional part of a number.

    Parameters

    • num: number

      The number to extract the fractional part from.

    Returns number

    The fractional part of the number.

    Example

    fracPart(-4.6);        // Returns 0.6
    fracPart(10.5); // Returns 0.5

Generated using TypeDoc