| Package | vegas.strings |
| Class | public class Luhn |
| Inheritance | Luhn Object |
The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, was developed in the 1960s as a method of validating identification numbers.
example
See Luhn Formula
import vegas.strings.Luhn ;
var code:String = "456565654" ;
trace (code + " isValid : " + Luhn.isValid(code)) ;
| Method | Defined By | ||
|---|---|---|---|
isValid(str:String):Boolean [static]
Returns true if the expression in argument is a valid Luhn value. | Luhn | ||