Publisher review:TextualNumber Class is a class for generating textual representations of numbers. TextualNumber Class is a class for generating textual representations of numbers. It is useful for protecting forms from auto-submission, or using in accounting applications.
The class is very easy to implement in your own applications.
Despite appearances the number should (though isn't required) be passed in as a string. This allows large numbers to be converted. Integers are handled just fine though. Negative numbers are handled fine.
The billion/trillion etc suffixes are done using the American style (eg 9 zeros for billion, 12 for trillion), which albeit being mathmetically incorrect, is the commonly accepted norm. Since this code was written for the purpose of validating human vs spider form submissions, this is the more appropriate way to go.
TextualNumber Class is a PHP script for PHP Classes scripts design by PhpGuru.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris