Decimal()

Decimal::Decimal() constructor

Constructs an instance that represents 0.

System::Decimal::Decimal()

Decimal::Decimal(std::int8_t) constructor

Constructs an instance that represents the specified value.

System::Decimal::Decimal(std::int8_t i)

Arguments

ParameterTypeDescription
istd::int8_t8-bit integer value to be represented by the Decimal object being constructed

Decimal::Decimal(std::int16_t) constructor

Constructs an instance that represents the specified value.

System::Decimal::Decimal(std::int16_t i)

Arguments

ParameterTypeDescription
istd::int16_t16-bit integer value to be represented by the Decimal object being constructed

Decimal::Decimal(std::int32_t) constructor

Constructs an instance that represents the specified value.

System::Decimal::Decimal(std::int32_t i)

Arguments

ParameterTypeDescription
istd::int32_t32-bit integer value to be represented by the Decimal object being constructed

Decimal::Decimal(std::int64_t) constructor

Constructs an instance that represents the specified value.

System::Decimal::Decimal(std::int64_t i)

Arguments

ParameterTypeDescription
istd::int64_t64-bit integer value to be represented by the Decimal object being constructed

Decimal::Decimal(std::uint8_t) constructor

Constructs an instance that represents the specified value.

System::Decimal::Decimal(std::uint8_t i)

Arguments

ParameterTypeDescription
istd::uint8_tunsigned 8-bit integer value to be represented by the Decimal object being constructed

Decimal::Decimal(std::uint16_t) constructor

Constructs an instance that represents the specified value.

System::Decimal::Decimal(std::uint16_t i)

Arguments

ParameterTypeDescription
istd::uint16_tunsigned 16-bit integer value to be represented by the Decimal object being constructed

Decimal::Decimal(std::uint32_t) constructor

Constructs an instance that represents the specified value.

System::Decimal::Decimal(std::uint32_t i)

Arguments

ParameterTypeDescription
istd::uint32_tunsigned 32-bit integer value to be represented by the Decimal object being constructed

Decimal::Decimal(std::uint64_t) constructor

Constructs an instance that represents the specified value.

System::Decimal::Decimal(std::uint64_t i)

Arguments

ParameterTypeDescription
istd::uint64_tunsigned 64-bit integer value to be represented by the Decimal object being constructed

Decimal::Decimal(float) constructor

Constructs an instance that represents the specified value.

System::Decimal::Decimal(float f)

Arguments

ParameterTypeDescription
ffloatThe single-precision floating-point value to be represented by the Decimal object being constructed

Decimal::Decimal(double) constructor

Constructs an instance that represents the specified value.

System::Decimal::Decimal(double d)

Arguments

ParameterTypeDescription
ddoubleThe double-precision floating-point value to be represented by the Decimal object being constructed

Decimal::Decimal(const std::string&) constructor

Constructs an instance that represents a value whose string representation is specified as an instance of std::string class.

System::Decimal::Decimal(const std::string &str)

Decimal::Decimal(int32_t, int32_t, int32_t, bool, uint8_t) constructor

Constructs a Decimal object from the specified from the specified components.

System::Decimal::Decimal(int32_t lo, int32_t mid, int32_t hi, bool isNegative, uint8_t scale)

Arguments

ParameterTypeDescription
loint32_tThe low 32 bits of the value
midint32_tThe middle 32 bits of the value
hiint32_tThe high 32 bits of the value
isNegativeboolSpecifies if the value is negative
scaleuint8_tA power of 10 ranging from 0 to 28

Decimal::Decimal(const Decimal&) constructor

Constructs an instance of Decimal class that represents the same number as the specified Decimal object.

System::Decimal::Decimal(const Decimal &d)

Arguments

ParameterTypeDescription
dconst Decimal&A Decimal object to copy the value from

Decimal::Decimal(const ArrayPtr<int32_t>&) constructor

Constructs an instance of Decimal class from integer array containing a binary representation.

System::Decimal::Decimal(const ArrayPtr<int32_t> &bits)

Arguments

ParameterTypeDescription
bitsconst ArrayPtr<int32_t>&A integer array containing a binary representation.

Decimal::Decimal(std::nullptr_t) constructor

Always throws ArgumentNullException.

System::Decimal::Decimal(std::nullptr_t bits)

Decimal::Decimal(const number_type&) constructor

Constructs an instance of Decimal class representing the specified value.

System::Decimal::Decimal(const number_type &value)

Arguments

ParameterTypeDescription
valueconst number_type&A constant reference to the value to be represented by the object being constructed

See Also