Timeline for Rounding up and Down
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 20, 2017 at 12:44 | history | edited | Michel Keijzers | CC BY-SA 3.0 |
added 131 characters in body
|
Jun 20, 2017 at 12:40 | comment | added | Edgar Bonet |
Why not just float f_rounded = round(f * 10) / 10.0; ? This handles both the positive and negative cases.
|
|
Jun 20, 2017 at 12:29 | comment | added | Michel Keijzers | @JohnnyMopp Updated my answers, thanks for the comment | |
Jun 20, 2017 at 12:29 | history | edited | Michel Keijzers | CC BY-SA 3.0 |
added 56 characters in body
|
Jun 20, 2017 at 12:04 | comment | added | 001 |
This would round -28.58 to -28.5 .
|
|
Jun 20, 2017 at 8:15 | history | answered | Michel Keijzers | CC BY-SA 3.0 |