DecimalControl.overflow

IEEE _decimal context errors. By default, no error is set.

DecimalControl.disableExceptions(ExceptionFlags.all);
decimal32 uninitialized;
decimal64 d = decimal64.max * 2;
decimal32 e = uninitialized + 5.0;
assert(DecimalControl.overflow);
assert(DecimalControl.invalidOperation);
  1. bool invalidOperation [@property getter]
  2. bool divisionByZero [@property getter]
  3. bool overflow [@property getter]
    struct DecimalControl
    @nogc @safe nothrow static @property
    bool
    overflow
    ()
  4. bool underflow [@property getter]
  5. bool inexact [@property getter]

Meta