Class FixedPointDecimal

FixedPointDecimal class

Fixed-point decimal, with 16-bit integer and 16-bit fraction.

public class FixedPointDecimal

Constructors

NameDescription
FixedPointDecimal(double)Initializes a new instance of the FixedPointDecimal class.
FixedPointDecimal(long)Initializes a new instance of the FixedPointDecimal class. Split the high and low words of a 32-bit integer into a fixed-point number.
FixedPointDecimal(int, int)Initializes a new instance of the FixedPointDecimal class.

Properties

NameDescription
Fraction { get; set; }Gets or sets the fraction.
Integer { get; set; }Gets or sets the integer.

Methods

NameDescription
ToDouble()Converts current fixed point decimal to double.

See Also