| Recommend this page to a friend! |
| All class groups | > | All authors | > | Packages of Alun (2) | > | Mission progress status | > | Reputation |
|
|||||||||||||||||||||||||||||||
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
|
|
| ||||
| This package can perform operations and format number values. It provides two classes that provide several functions to perform several operations on numbers that can be taken from strings. One class is a base class that implements base number operations. The other is a numeral class that provides the same functions, assuming specific default values of the class function parameters. Currently, the base class provides functions to: - Check if the value is numeric, odd, even, integer, float, positive, negative, or zero - Change the sign of the number between positive and negative - Format the number as a string - Spell the number with words - Convert the number to the ordinal form - Convert the given number to its percentage equivalent. - Convert the given number to its currency equivalent. - Convert the given number to its file size equivalent. - Convert the number to its human-readable equivalent. - Convert the number to its human-readable equivalent. - Convert the number to its human-readable equivalent. - Clamp the given number between the given minimum and maximum. - Counts the length of a numeral. - Returns a random number using the Randomizer class from PHP. - Returns a random number between the given min and max values. - Get the greatest common divisor of two numbers. - Get the least common multiple of two numbers. - Get the factorial of a number. |
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |