• Truncates integer value to number of places. If roundOff is specified round value instead to the number of places

    Parameters

    • num: number
    • places: number = 0
    • roundOff: boolean = false

    Returns number