Validator to only allow floating point numbers.
Validator to only allow floating point numbers.
This validator checks whether the value is or looks like a floating point number and is between the minimum and maximum value.
__construct($min=0.0, $max=null) ¶Create a new AnewtValidatorFloat.
$minMinimum allowable value. Provide null for no limit. Defaults to 0.
$maxMaximum allowable value. Provide null for no limit. Defaults to null.
is_valid($value) ¶Checks for validity.
The return value should be true for valid values, and false otherwise.
$valueThe value to check for validity.
True if the value is valid, false otherwise.
AnewtContainer::_to_array()AnewtContainer::_add()AnewtContainer::delete()AnewtContainer::get()AnewtContainer::_isset()AnewtContainer::_seed()AnewtContainer::setdefault()AnewtContainer::getdefault()AnewtContainer::set()AnewtContainer::__isset()AnewtContainer::__set()AnewtContainer::__construct()AnewtContainer::is_set()AnewtContainer::add()AnewtContainer::_getdefault()AnewtContainer::__unset()AnewtContainer::seed()AnewtContainer::to_array()AnewtContainer::_get()AnewtContainer::__get()AnewtContainer::keys()AnewtContainer::clear()AnewtContainer::_keys()AnewtContainer::_set()AnewtValidator::__construct()