about summary refs log tree commit diff
path: root/src/libcoretest/lib.rs
diff options
context:
space:
mode:
authorRobin Kruppe <robin.kruppe@gmail.com>2015-07-26 17:50:29 +0200
committerRobin Kruppe <robin.kruppe@gmail.com>2015-08-08 17:15:31 +0200
commitba792a4baa856d83c3001afa181db91c5b4c9732 (patch)
tree7d2096c3a3aed1829069b5e21d90e74e03da578c /src/libcoretest/lib.rs
parentb7e39a1c2dd24fd4110c22c70cad254365b0ffd3 (diff)
downloadrust-ba792a4baa856d83c3001afa181db91c5b4c9732.tar.gz
rust-ba792a4baa856d83c3001afa181db91c5b4c9732.zip
Accurate decimal-to-float parsing routines.
This commit primarily adds implementations of the algorithms from William
Clinger's paper "How to Read Floating Point Numbers Accurately". It also
includes a lot of infrastructure necessary for those algorithms, and some
unit tests.

Since these algorithms reject a few (extreme) inputs that were previously
accepted, this could be seen as a [breaking-change]
Diffstat (limited to 'src/libcoretest/lib.rs')
-rw-r--r--src/libcoretest/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcoretest/lib.rs b/src/libcoretest/lib.rs
index 08536e63204..4262be83361 100644
--- a/src/libcoretest/lib.rs
+++ b/src/libcoretest/lib.rs
@@ -19,6 +19,7 @@
 #![feature(float_extras)]
 #![feature(float_from_str_radix)]
 #![feature(flt2dec)]
+#![feature(dec2flt)]
 #![feature(fmt_radix)]
 #![feature(hash_default)]
 #![feature(hasher_write)]