NumberF.Validation (NumberF v0.1.3)

View Source

Functions for validating various numeric formats and related data.

Summary

Functions

Validates credit card numbers using the Luhn algorithm.

Checks if a string is a valid integer.

Checks if a string is a valid number format.

Functions

is_valid_credit_card?(number, type \\ :any)

Validates credit card numbers using the Luhn algorithm.

is_valid_integer?(str)

Checks if a string is a valid integer.

is_valid_number?(str)

Checks if a string is a valid number format.