Sha256: 70abe1027f0ce1a815aac1a5432061a16b8c83df4321191dd1b4ad458c275ace
Contents?: true
Size: 1.64 KB
Versions: 12
Compression:
Stored size: 1.64 KB
Contents
o:$YARD::CodeObjects::MethodObject:@scope: instance:@visibility:public: @pathI"Kernel#Float:EF:@parameters[:@files[[I" object.c;T0:@current_file_has_commentsF: @name: Float:@source_type:c: @tags[:@docstringIC:YARD::Docstring" Returns <i>arg</i> converted to a float. Numeric types are converted directly, the rest are converted using <i>arg</i>.to_f. As of Ruby 1.8, converting <code>nil</code> generates a <code>TypeError</code>. Float(1) #=> 1.0 Float("123.456") #=> 123.456;F:@objectIu:YARD::StubProxyKernel#Float;F: @summary0:@ref_tags[;[o:YARD::Tags::OverloadTag :@tag_nameI" overload;F: @text0;;:@types0:@signatureI"Float(arg);F;IC;";F;Iu;Kernel#Float;F;0;[;[o:YARD::Tags::Tag ;I"return;F;I";F;0;[I" Float;F;0: @allI"@return [Float];F;[[:arg0;Iu;Kernel#Float;F; I"6Returns <i>arg</i> converted to a float. Numeric types are converted directly, the rest are converted using <i>arg</i>.to_f. As of Ruby 1.8, converting <code>nil</code> generates a <code>TypeError</code>. Float(1) #=> 1.0 Float("123.456") #=> 123.456 @overload Float(arg) @return [Float];F:@namespaceIu;Kernel;F:@docstring_extra0:@sourceI"�/* * call-seq: * Float(arg) -> float * * Returns <i>arg</i> converted to a float. Numeric types are converted * directly, the rest are converted using <i>arg</i>.to_f. As of Ruby * 1.8, converting <code>nil</code> generates a <code>TypeError</code>. * * Float(1) #=> 1.0 * Float("123.456") #=> 123.456 */ static VALUE rb_f_float(VALUE obj, VALUE arg) { return rb_Float(arg); };F
Version data entries
12 entries across 12 versions & 2 rubygems