File tree 2 files changed +11
-13
lines changed
src/libcore/num/flt2dec/strategy
2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
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.
17
16
18
17
use cmp:: Ordering ;
19
18
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
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.
18
17
19
18
use num:: diy_float:: Fp ;
20
19
use num:: flt2dec:: { Decoded , MAX_SIG_DIGITS , round_up} ;
You can’t perform that action at this time.
0 commit comments