Phorm/Field/Decimal.class.php
/**
	 * Validates that the value is parsable as a float.
	 *
	 * @param string value
	 * @return null
	 * @throws Phorm_ValidationError
	 */
Validates that the value is parsable as a float.

@param string value
@return null
@throws Phorm_ValidationError
Validates that the value is parsable as a float . @param string value @return null @throws Phorm_ValidationError
public function validate($value)
	{
		if( !filter_var($value,FILTER_VALIDATE_FLOAT ) )
		{
			throw new Phorm_ValidationError('field_invalid_decimal');
		}
	}
public function validate ( $ value ) { if ( ! filter_var ( $ value , FILTER_VALIDATE_FLOAT ) ) { throw new Phorm_ValidationError ( 'field_invalid_decimal' ) ; } }
Validates that the value is parsable as a float.
Validates that the value is parsable as a float .