| 1 | <?php |
||
| 22 | class FloatHelper { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Determines if a value is a float. |
||
| 26 | * |
||
| 27 | * @param mixed $value The value. |
||
| 28 | * @throws FloatArgumentException Throws a Float argument exception if the value is not of expected type. |
||
| 29 | */ |
||
| 30 | public static function isFloat($value) { |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Parse a string. |
||
| 38 | * |
||
| 39 | * @param string $value The string value. |
||
| 40 | * @return float Returns the float represented by the string value. |
||
| 41 | * @throws FloatArgumentException Throws a float argument exception if the string value does not represent a float. |
||
| 42 | */ |
||
| 43 | public static function parseString($value) { |
||
| 52 | |||
| 53 | } |
||
| 54 |