D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Math
/
Filename :
frexp-c.ri
back
Copy
U:RDoc::AnyMethod[iI" frexp:ETI"Math::frexp;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"QReturns a 2-element array containing the normalized signed float +fraction+ ;TI"-and integer +exponent+ of +x+ such that:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I" x = fraction * 2**exponent ;T:@format0o; ; [I"�See {IEEE 754 double-precision binary floating-point format: binary64}[https://en.wikipedia.org/wiki/Double-precision_floating-point_format#IEEE_754_double-precision_binary_floating-point_format:_binary64].;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I",Domain: <tt>[-INFINITY, INFINITY]</tt>.;To;;0; [o; ; [I"*Range <tt>[-INFINITY, INFINITY]</tt>.;T@o; ; [I"Examples:;T@o;; [I"+frexp(-INFINITY) # => [-Infinity, -1] ;TI"%frexp(-2.0) # => [-0.5, 2] ;TI"%frexp(-1.0) # => [-0.5, 1] ;TI"$frexp(0.0) # => [0.0, 0] ;TI"$frexp(1.0) # => [0.5, 1] ;TI"$frexp(2.0) # => [0.5, 2] ;TI"*frexp(INFINITY) # => [Infinity, -1] ;T; 0o; ; [I"1Related: Math.ldexp (inverse of Math.frexp).;T: @fileI"math.c;T:0@omit_headings_from_table_of_contents_below0I"+Math.frexp(x) -> [fraction, exponent] ;T0[ I" (p1);T@1FI" Math;TcRDoc::NormalModule00