summary refs log tree commit diff
path: root/src/libcore/float.rs
AgeCommit message (Collapse)AuthorLines
2012-12-20core: Add a Zero and One trait to numErick Tryzelaar-0/+8
I believe these are the last traits we need in order to start grouping our numerical types into mathematical groups and rings.
2012-12-13Change some uses of static methods to use the trait pathBrian Anderson-1/+1
2012-12-05Convert Num to explicit selfBrian Anderson-8/+8
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-30core: Make core.rc more readable. CleanupBrian Anderson-0/+2
2012-11-28Register snapshotsBrian Anderson-24/+0
2012-11-23Inline numeric operations for floats.Eric Holk-0/+8
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+24
2012-11-15librustc: Fix cross-crate reexports. rs=blocking-servoPatrick Walton-9/+9
2012-10-11Make to_str pure and fix const parameters for str-mutating functionsTim Chevalier-5/+7
Two separate changes that got intertwined (sorry): Make to_str pure. Closes #3691 In str, change functions like push_char to take an &mut str instead of an &str. Closes #3710
2012-09-28demode vecNiko Matsakis-1/+1
2012-09-27Finish de-exporting box, char, float. Part of #3583.Graydon Hoare-31/+15
2012-09-26libcore: Partially de-export char, f32, f64, and floatPatrick Walton-43/+41
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-1/+1
2012-09-25Demode Num trait and implsTim Chevalier-18/+18
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-16/+0
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+1
#[legacy_exports];
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+16
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-0/+1
2012-09-05Start making moves explicit in libcoreTim Chevalier-2/+1
This is in preparation for issue 2633. Replaced implicit moves that rely on last-use with explicit moves in char, float, and str.
2012-09-04libcore: "import" -> "use"Patrick Walton-13/+13
2012-09-01Remove the 'to' keywordBrian Anderson-2/+2
2012-08-29rustc: Make `<=`, `>=`, and `>` use traits as wellPatrick Walton-0/+3
2012-08-29rustc: Make `<` and `=` into traitsPatrick Walton-2/+11
2012-08-27libcore: Replace a bunch of "== None" with ".is_none()".Patrick Walton-10/+10
Generally, "== None" calls into the shape glue, and it's also more useful.
2012-08-26Camel case the option typeBrian Anderson-47/+47
2012-08-14Fix build breakageTim Chevalier-1/+2
2012-08-14Make Num::from_int a static methodTim Chevalier-7/+7
2012-08-13More core mode forbidding.Graydon Hoare-6/+10
2012-08-13core: Camel case some lesser-used modulesBrian Anderson-2/+2
2012-08-13core: Export f32::ge(), f64::ge(), and float::ge()Chris Peterson-2/+2
2012-08-08Convert impls to new syntaxBrian Anderson-1/+1
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-7/+7
2012-08-05Switch alts to use arrowsBrian Anderson-28/+18
2012-08-01Convert ret to returnBrian Anderson-27/+27
2012-07-31Change remaining "iface" occurrences to "trait"; deprecate "iface"Lindsey Kuper-1/+1
2012-07-26core: Mark a bunch of numeric functions as purePatrick Walton-24/+24
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-52/+52
#2907.
2012-07-12Get rid of all of the remaining /~s in the code base.Michael Sullivan-2/+2
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-79/+79
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-4/+4
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-5/+5
2012-06-25Remove redundant 'extension' mods from numeric modsBrian Anderson-17/+24
2012-06-25Automatically export methods on core numeric typesBen Striegel-11/+13
Each numeric type now contains an extensions module that is automatically exported. At the moment each extensions module contains only the impl for the `num::num` iface. Other impls soon to follow (hopefully).
2012-06-21Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.Graydon Hoare-2/+2
2012-06-14Comments only: Annotate FIXMEs in libcoreTim Chevalier-1/+1
2012-06-07Add neg() to the num ifacePatrick Walton-0/+1
2012-06-07libcore: Add a num typeclassPatrick Walton-0/+32
2012-06-04Machine types are different from int/uint, etc (Issue #2187)Eric Holk-20/+86
2012-06-02(float) fix some rounding errors when showing as strKevin Cantu-11/+64
This seems to fix issue #1876, and some of the superficial parts of issue #1375. The #fmt macro and the to_str functions will round, rather than truncate, floats as strings. Other issues remain, and I wrote more code here than intended, but the following should pass now. ``` fn x() { assert "3.1416" == #fmt["%.4f", 3.14159]; assert "3" == #fmt["%.0f", 3.14159]; assert "99" == #fmt["%.0f", 98.5]; assert "7.0000" == #fmt["%.4f", 6.999999999]; assert "3.141590000" == #fmt["%.9f", 3.14159]; } ```