The behavior you are seeing is part of IEEE-754 standard. The easiest chart I found is in the "Special Operations" section of https://steve.hollasch.net/cgindex/codin...float.html.
The specification that defines the
http://speleotrove.com/decimal/decarith.html
The behavior is documented in section 7 Exceptional Conditions.
The specification that defines the
decimal
library is available at:http://speleotrove.com/decimal/decarith.html
The behavior is documented in section 7 Exceptional Conditions.