This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
qna:c:values-operators:rounding-values [2021/03/13 20:09] xallos created |
qna:c:values-operators:rounding-values [2021/03/13 20:13] (current) xallos |
||
---|---|---|---|
Line 8: | Line 8: | ||
<code c> | <code c> | ||
- | | + | printf(" |
- | printf(" | + | // 10.1999999999999990 |
- | printf(" | + | |
- | printf(" | + | printf(" |
- | printf(" | + | // 2.2000000000000002 => ceil = 3 |
+ | |||
+ | printf(" | ||
+ | // 1.8000000000000000 | ||
+ | |||
+ | printf(" | ||
+ | // 2.0000000000000000 | ||
+ | |||
+ | printf(" | ||
+ | // 1.9999999999999998 => floor = 1 | ||
</ | </ | ||
Και όπως φαίνεται αυτό έχει και σαν αποτέλεσμα, | Και όπως φαίνεται αυτό έχει και σαν αποτέλεσμα, |