|
|
|
|
|
by ansible
2164 days ago
|
|
It is nice that they have defined behavior for that now. Though I try to always scrutinize any floating-point / integer conversions during code reviews. The default casting of a floating point value to integer is frequently not what you want, however. In the code we do, for example, you will usually round to the nearest integer instead, we don't normally need the more fancy rounding schemes. |
|