/// The floating point encoding is documented in the [Reference][floating-point].
///
/// ```
- /// # #![feature(std_misc)]
+ /// # #![feature(float_extras)]
/// let num = 2.0f64;
///
/// // (8388608, -22, 1)
/// assert!(abs_difference < 1e-10);
/// ```
/// [floating-point]: ../../../../../reference.html#machine-types
- #[unstable(feature = "std_misc", reason = "signature is undecided")]
+ #[unstable(feature = "float_extras", reason = "signature is undecided")]
#[inline]
pub fn integer_decode(self) -> (u64, i16, i8) { num::Float::integer_decode(self) }
/// Constructs a floating point number of `x*2^exp`.
///
/// ```
- /// # #![feature(std_misc)]
+ /// # #![feature(float_extras)]
/// // 3*2^2 - 12 == 0
/// let abs_difference = (f64::ldexp(3.0, 2) - 12.0).abs();
///
/// assert!(abs_difference < 1e-10);
/// ```
- #[unstable(feature = "std_misc",
+ #[unstable(feature = "float_extras",
reason = "pending integer conventions")]
#[inline]
pub fn ldexp(x: f64, exp: isize) -> f64 {
/// * `0.5 <= abs(x) < 1.0`
///
/// ```
- /// # #![feature(std_misc)]
+ /// # #![feature(float_extras)]
/// let x = 4.0_f64;
///
/// // (1/2)*2^3 -> 1 * 8/2 -> 4.0
/// assert!(abs_difference_0 < 1e-10);
/// assert!(abs_difference_1 < 1e-10);
/// ```
- #[unstable(feature = "std_misc",
+ #[unstable(feature = "float_extras",
reason = "pending integer conventions")]
#[inline]
pub fn frexp(self) -> (f64, isize) {
/// `other`.
///
/// ```
- /// # #![feature(std_misc)]
+ /// # #![feature(float_extras)]
///
/// let x = 1.0f32;
///
///
/// assert!(abs_diff < 1e-10);
/// ```
- #[unstable(feature = "std_misc",
+ #[unstable(feature = "float_extras",
reason = "unsure about its place in the world")]
#[inline]
pub fn next_after(self, other: f64) -> f64 {