Tag: exception

处理浮点exception

我不知道如何处理C或C ++中的浮点exception。 从wiki中,有以下类型的浮点exception: IEEE 754 specifies five arithmetic errors that are to be recorded in “sticky bits” (by default; note that trapping and other alternatives are optional and, if provided, non-default). * inexact, set if the rounded (and returned) value is different from the mathematically exact result of the operation. * underflow, set if the […]