Previous: , Up: .Net Interface   [Index]


13.7 MPIR.Net Settings

Static Class: MpirSettings

This static class contains several members that describe or control various default behaviors of the other MPIR.Net classes.

Constant: int BITS_PER_LIMB

Represents the total number of bits in a single MPIR limb, including data bits and nail bits. This will be either 32 or 64, depending on your selected build architecture.

Constant: int NAIL_BITS_PER_LIMB

Represents the number of nail bits in a single MPIR limb. Nail bits are used internally by MPIR.

Constant: int USABLE_BITS_PER_LIMB

Represents the number of data bits in a single MPIR limb.

Constant: Version MPIR_VERSION

Represents the version of the underlying MPIR library

Constant: Version GMP_VERSION

Represents the version of GMP with which the underlying MPIR library is compatible

Static Property: RoundingModes RoundingMode

Gets or sets the default rounding mode used for MPIR integer division operations that don’t explicitly specify a rounding mode. Does not affect rational or float operations. The default value is Truncate.

Static Property: int ToStringDigits

Gets or sets the maximum number of digits the object.ToString() method override will output. If an integer number is longer than this number of digits, it will be output as "[-]...NNNNN" with the least significant digits shown. Rational numbers apply the limit separately to the numerator and denominator. Floats output the most significant digits, and there is no ellipsis.

The primary purpose of this setting is to prevent accidental allocation of large memory blocks while inspecting variables in the debugger. The default value is 256. Setting this property to 0 causes all digits to be output.


Previous: MPIR.Net Random Numbers, Up: .Net Interface   [Index]