Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
4180af3d76685d7142c515e8a1fcc894cbe1d6fd
/
.
/
useful
/
fpround.c
blob: 3a186bb603ebc2eb6ab0e95d816715a9a3cc34f7 [
file
] [
log
] [
blame
]
#include
<stdio.h>
int
main
(
void
)
{
double
d
=
0.0
;
int
i
;
for
(
i
=
0
;
i
<
30
;
i
++)
{
printf
(
"i = %d, d = %f, (int)d = %d\n"
,
i
,
d
,
(
int
)
d
);
d
+=
0.11
;
}
return
0
;
}