about summary refs log tree commit diff
path: root/src/libstd/num/float.rs
AgeCommit message (Collapse)AuthorLines
2013-10-01remove the `float` typeDaniel Micay-1444/+0
It is simply defined as `f64` across every platform right now. A use case hasn't been presented for a `float` type defined as the highest precision floating point type implemented in hardware on the platform. Performance-wise, using the smallest precision correct for the use case greatly saves on cache space and allows for fitting more numbers into SSE/AVX registers. If there was a use case, this could be implemented as simply a type alias or a struct thanks to `#[cfg(...)]`. Closes #6592 The mailing list thread, for reference: https://mail.mozilla.org/pipermail/rust-dev/2013-July/004632.html
2013-09-30std: Remove usage of fmt!Alex Crichton-7/+7
2013-09-25rustdoc: Change all code-blocks with a scriptAlex Crichton-2/+2
find src -name '*.rs' | xargs sed -i '' 's/~~~.*{\.rust}/```rust/g' find src -name '*.rs' | xargs sed -i '' 's/ ~~~$/ ```/g' find src -name '*.rs' | xargs sed -i '' 's/^~~~$/ ```/g'
2013-09-19Rename the NaN and is_NaN methods to lowercase.Chris Morgan-31/+31
This is for consistency in naming conventions. - ``std::num::Float::NaN()`` is changed to ``nan()``; - ``std::num::Float.is_NaN()`` is changed to ``is_nan()``; and - ``std::num::strconv::NumStrConv::NaN()`` is changed to ``nan()``. Fixes #9319.
2013-09-18std: Remove {float,f64,f32}::from_str in favor of from_strblake2-ppc-91/+83
Like issue #9209, remove float::{from_str, from_str_radix} in favor of the two corresponding traits. The same for modules f64 and f32. New usage is from_str::<float>("1.2e34")
2013-09-12std: Add a bunch of Default implsErick Tryzelaar-0/+6
2013-09-08Fix import order which caused the wrong from_str to be in scopeCorey Richardson-1/+1
2013-08-30remove several 'ne' methodsEric Martin-2/+0
2013-08-28Disabled failing parts of abs_sub() and frexp() unit tests on Windows.Vadim Chugunov-0/+7
2013-08-27librustc: Ensure that type parameters are in the right positions in paths.Patrick Walton-68/+156
This removes the stacking of type parameters that occurs when invoking trait methods, and fixes all places in the standard library that were relying on it. It is somewhat awkward in places; I think we'll probably want something like the `Foo::<for T>::new()` syntax.
2013-08-20rm obsolete float to_str_radix free functionsDaniel Micay-26/+19
2013-07-08 Replaces the free-standing functions in f32, &c.Jens Nockert-53/+17
The free-standing functions in f32, f64, i8, i16, i32, i64, u8, u16, u32, u64, float, int, and uint are replaced with generic functions in num instead. If you were previously using any of those functions, just replace them with the corresponding function with the same name in num. Note: If you were using a function that corresponds to an operator, use the operator instead.
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-0/+1
2013-06-30Specialize to_str_common for floats/integers in strconvAlex Crichton-11/+11
This allows the integral paths to avoid allocations on the heap Closes #4424, #4423
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-129/+129
2013-06-11std: convert pow, hypot, atan2, log to take arguments by reference.Huon Wilson-8/+8
2013-06-08std: Fix search-and-replace typosTim Chevalier-1/+1
2013-05-30Require documentation by default for libstdAlex Crichton-0/+2
Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-2/+8
2013-05-27syntax highlight code examples in docstringsDaniel Micay-1/+1
2013-05-23cleanup warnings from libstdErick Tryzelaar-70/+70
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+1387
This only changes the directory names; it does not change the "real" metadata names.