| 1 | <?php |
||
| 8 | class Float extends DBField { |
||
| 9 | |||
| 10 | public function __construct($name = null, $defaultVal = 0) { |
||
| 15 | |||
| 16 | public function requireField() { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Returns the number, with commas and decimal places as appropriate, eg “1,000.00”. |
||
| 29 | * |
||
| 30 | * @uses number_format() |
||
| 31 | */ |
||
| 32 | public function Nice() { |
||
| 35 | |||
| 36 | public function Round($precision = 3) { |
||
| 39 | |||
| 40 | public function NiceRound($precision = 3) { |
||
| 43 | |||
| 44 | public function scaffoldFormField($title = null) { |
||
| 47 | |||
| 48 | public function nullValue() { |
||
| 51 | |||
| 52 | public function prepValueForDB($value) { |
||
| 61 | |||
| 62 | } |
||
| 63 |