public function validate($value)
    {
        return is_float($value) ? Ok::unit() : Error::unit([ Error::NON_FLOAT ]);
    }
public function validate($value)
    {
        return is_float($value) ? Ok::unit() : Error::unit([ Error::NON_FLOAT ]);
    }
public function validate ( $ value ) { return is_float ( $ value ) ? Ok :: unit ( ) : Error :: unit ( [ Error :: NON_FLOAT ] ) ; }
Tells if a given value is a valid float.

@param mixed $value

@return ResultInterface Returns Ok if the value is valid, otherwise an Error is returned.
Tells if a given value is a valid float .