Message307258
As a comment in the referenced patch says, the intent of the patch was to make behavior match the C99 spec. Among other things, C99's annex F (section F.9.4.4 "The pow functions") says:
"""
— pow(−∞, y) returns −0 for y an odd integer < 0.
— pow(−∞, y) returns +0 for y < 0 and not an odd integer.
— pow(−∞, y) returns −∞ for y an odd integer > 0.
— pow(−∞, y) returns +∞ for y > 0 and not an odd integer.
"""
So the case you show is doing what the standard specifies, under the last of those (y=0.5, which is > 0 and not an odd integer). |
|
Date |
User |
Action |
Args |
2017-11-29 21:45:32 | tim.peters | set | recipients:
+ tim.peters, mark.dickinson, pdenis |
2017-11-29 21:45:32 | tim.peters | set | messageid: <1511991932.07.0.213398074469.issue32171@psf.upfronthosting.co.za> |
2017-11-29 21:45:32 | tim.peters | link | issue32171 messages |
2017-11-29 21:45:32 | tim.peters | create | |
|