File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed
src/libcore/num/flt2dec/strategy Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 88// option. This file may not be copied, modified, or distributed
99// except according to those terms.
1010
11- /*!
12- Almost direct (but slightly optimized) Rust translation of Figure 3 of \[1\].
13-
14- \[1\] Burger, R. G. and Dybvig, R. K. 1996. Printing floating-point numbers
15- quickly and accurately. SIGPLAN Not. 31, 5 (May. 1996), 108-116.
16- */
11+ //! Almost direct (but slightly optimized) Rust translation of Figure 3 of "Printing
12+ //! Floating-Point Numbers Quickly and Accurately"[^1].
13+ //!
14+ //! [^1]: Burger, R. G. and Dybvig, R. K. 1996. Printing floating-point numbers
15+ //! quickly and accurately. SIGPLAN Not. 31, 5 (May. 1996), 108-116.
1716
1817use cmp:: Ordering ;
1918
Original file line number Diff line number Diff line change 88// option. This file may not be copied, modified, or distributed
99// except according to those terms.
1010
11- /*!
12- Rust adaptation of Grisu3 algorithm described in \[1\]. It uses about
13- 1KB of precomputed table, and in turn, it's very quick for most inputs.
14-
15- \[1\] Florian Loitsch. 2010. Printing floating-point numbers quickly and
16- accurately with integers. SIGPLAN Not. 45, 6 (June 2010), 233-243.
17- */
11+ //! Rust adaptation of the Grisu3 algorithm described in "Printing Floating-Point Numbers Quickly
12+ //! and Accurately with Integers"[^1]. It uses about 1KB of precomputed table, and in turn, it's
13+ //! very quick for most inputs.
14+ //!
15+ //! [^1]: Florian Loitsch. 2010. Printing floating-point numbers quickly and
16+ //! accurately with integers. SIGPLAN Not. 45, 6 (June 2010), 233-243.
1817
1918use num:: diy_float:: Fp ;
2019use num:: flt2dec:: { Decoded , MAX_SIG_DIGITS , round_up} ;
You can’t perform that action at this time.
0 commit comments