Rollup merge of #52164 - euclio:references, r=TimNN
use proper footnote syntax for references The previous syntax was causing rustdoc to interpret them as links.
This commit is contained in:
commit
8fba84fe0a
|
@ -8,12 +8,11 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
/*!
|
//! Almost direct (but slightly optimized) Rust translation of Figure 3 of "Printing
|
||||||
Almost direct (but slightly optimized) Rust translation of Figure 3 of \[1\].
|
//! Floating-Point Numbers Quickly and Accurately"[^1].
|
||||||
|
//!
|
||||||
\[1\] Burger, R. G. and Dybvig, R. K. 1996. Printing floating-point numbers
|
//! [^1]: Burger, R. G. and Dybvig, R. K. 1996. Printing floating-point numbers
|
||||||
quickly and accurately. SIGPLAN Not. 31, 5 (May. 1996), 108-116.
|
//! quickly and accurately. SIGPLAN Not. 31, 5 (May. 1996), 108-116.
|
||||||
*/
|
|
||||||
|
|
||||||
use cmp::Ordering;
|
use cmp::Ordering;
|
||||||
|
|
||||||
|
|
|
@ -8,13 +8,12 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
/*!
|
//! Rust adaptation of the Grisu3 algorithm described in "Printing Floating-Point Numbers Quickly
|
||||||
Rust adaptation of Grisu3 algorithm described in \[1\]. It uses about
|
//! and Accurately with Integers"[^1]. It uses about 1KB of precomputed table, and in turn, it's
|
||||||
1KB of precomputed table, and in turn, it's very quick for most inputs.
|
//! very quick for most inputs.
|
||||||
|
//!
|
||||||
\[1\] Florian Loitsch. 2010. Printing floating-point numbers quickly and
|
//! [^1]: Florian Loitsch. 2010. Printing floating-point numbers quickly and
|
||||||
accurately with integers. SIGPLAN Not. 45, 6 (June 2010), 233-243.
|
//! accurately with integers. SIGPLAN Not. 45, 6 (June 2010), 233-243.
|
||||||
*/
|
|
||||||
|
|
||||||
use num::diy_float::Fp;
|
use num::diy_float::Fp;
|
||||||
use num::flt2dec::{Decoded, MAX_SIG_DIGITS, round_up};
|
use num::flt2dec::{Decoded, MAX_SIG_DIGITS, round_up};
|
||||||
|
|
Loading…
Reference in New Issue