![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
gap=> select round(42.5); round ------- 42 (1 row) Result has to be 43 |
#3
| |||
| |||
|
|
"Roman Schayuk" <rschayuk (AT) rogers (DOT) com> writes: gap=> select round(42.5); round ------- 42 (1 row) Result has to be 43 No, the above is perfectly correct and in fact required by the IEEE standard for floating-point arithmetic (because round-to-nearest-even is the default rounding mode). That is rounding of unrepresentable numbers, is it not? at least |
|
If anything needs to be changed here, it's the behavior of round(numeric). So I would say that the round behaviour has changed as Tom has suggested, but which is correct? |
#4
| |||
| |||
|
|
Either way 8.0.1 round differently; |
![]() |
| Thread Tools | |
| Display Modes | |
| |