D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Math
/
Filename :
ldexp-c.ri
back
Copy
U:RDoc::AnyMethod[iI" ldexp:ETI"Math::ldexp;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I":Returns the value of <tt>fraction * 2**exponent</tt>.;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"/Domain of +fraction+: <tt>[0.0, 1.0)</tt>.;To;;0; [o; ; [I".Domain of +exponent+: <tt>[0, 1024]</tt> ;TI",(larger values are equivalent to 1024).;T@o; ; [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; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [I")ldexp(-INFINITY, -1) # => -Infinity ;TI"$ldexp(-0.5, 2) # => -2.0 ;TI"$ldexp(-0.5, 1) # => -1.0 ;TI"#ldexp(0.0, 0) # => 0.0 ;TI"#ldexp(-0.5, 1) # => 1.0 ;TI"#ldexp(-0.5, 2) # => 2.0 ;TI"(ldexp(INFINITY, -1) # => Infinity ;T:@format0o; ; [I"1Related: Math.frexp (inverse of Math.ldexp).;T: @fileI"math.c;T:0@omit_headings_from_table_of_contents_below0I"-Math.ldexp(fraction, exponent) -> float ;T0[ I" (p1, p2);T@.FI" Math;TcRDoc::NormalModule00