Sign in
fuchsia
/
third_party
/
rust
/
445af68c23098596d70b7f9f74b37fcb43146cf5
/
.
/
src
/
etc
/
test-float-parse
/
long-fractions.rs
blob: 55e4f07cd0cc3b8f811f95f55743d07f8e881694 [
file
] [
log
] [
blame
]
mod
_common
;
use
std
::
char
;
use
_common
::
validate
;
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
);
}
}
}
}