original_string: public function validate($value)
      {
          return is_float($value) ? Ok::unit() : Error::unit([ Error::NON_FLOAT ]);
      }
code: public function validate($value)
      {
          return is_float($value) ? Ok::unit() : Error::unit([ Error::NON_FLOAT ]);
      }
code_tokens: public function validate ( $ value ) { return is_float ( $ value ) ? Ok :: unit ( ) : Error :: unit ( [ Error :: NON_FLOAT ] ) ; }
docstring: 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.
docstring_tokens: Tells if a given value is a valid float .