Sign in
fuchsia
/
third_party
/
rust
/
a9aa2dfe844840a7e414873ce55ef9d02f1038a7
/
.
/
src
/
etc
/
test-float-parse
/
long-fractions.rs
blob: 60cf85c4a60cfbdaf33fe67fa078ec25777f76e9 [
file
] [
log
] [
blame
]
mod
_common
;
use
_common
::
validate
;
use
std
::
char
;
fn
main
()
{
for
n in
0.
.
10
{
let
digit
=
char
::
from_digit
(
n
,
10
).
unwrap
();
let
mut
s
=
"0."
.
to_string
();
for
_ in
0.
.
400
{
s
.
push
(
digit
);
if
s
.
parse
::<
f64
>().
is_ok
()
{
validate
(&
s
);
}
}
}
}