File tree 2 files changed +8
-13
lines changed
src/libcore/num/flt2dec/strategy
2 files changed +8
-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 "Burger, R. G. and
12
+ //! Dybvig, R. K. 1996. Printing floating-point numbers quickly and accurately. SIGPLAN Not. 31, 5
13
+ //! (May. 1996), 108-116."
17
14
18
15
use cmp:: Ordering ;
19
16
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. It uses about 1KB of precomputed table, and in turn,
12
+ //! it's very quick for most inputs.
13
+ //!
14
+ //! The Grisu3 algorithm is described in "Florian Loitsch. 2010. Printing floating-point numbers
15
+ //! quickly and accurately with integers. SIGPLAN Not. 45, 6 (June 2010), 233-243."
18
16
19
17
use num:: diy_float:: Fp ;
20
18
use num:: flt2dec:: { Decoded , MAX_SIG_DIGITS , round_up} ;
You can’t perform that action at this time.
0 commit comments