stdxdecimal

Undocumented in source.

Members

Classes

DivisionByZero
class DivisionByZero

Thrown when using Throw and division by zero occurs

InvalidOperation
class InvalidOperation

Thrown when using Throw and an invalid operation occurs

Overflow
class Overflow

Thrown when using Throw and overflow occurs

Underflow
class Underflow

Thrown when using Throw and underflow occurs

Enums

Rounding
enum Rounding

Rounding mode

Functions

decimal
auto decimal(R r)

Factory function

Structs

Abort
struct Abort

Will halt program on division by zero, invalid operations, overflows, and underflows

Decimal
struct Decimal(Hook = Abort)

Behavior is defined by Hook. Number of significant digits is limited by Hook.precision.

HighPrecision
struct HighPrecision

Same as abort, but offers 64 significant digits

NoOp
struct NoOp

Does nothing on invalid operations except the proper flags

Throw
struct Throw

Will throw exceptions on division by zero, invalid operations, overflows, and underflows

Meta