Click or drag to resize
mpf_t Class
Represents a multiple precision floating-point number.
Inheritance Hierarchy

Namespace:  Math.Gmp.Native
Assembly:  Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class mpf_t : mp_base

The mpf_t type exposes the following members.

Constructors
  NameDescription
Public methodmpf_t
Initializes a new instance of the mpf_t class
Top
Properties
  NameDescription
Public property_mp_d
A pointer to an array of limbs which is the magnitude.
(Inherited from mp_base.)
Public property_mp_d_intptr
Gets or sets the pointer to the significand array of limbs of the floating-point number.
(Overrides mp_base_mp_d_intptr.)
Public property_mp_exp
The exponent, in limbs, determining the location of the implied radix point.
Public property_mp_prec
The precision of the mantissa, in limbs.
Public property_mp_size
The number of limbs currently in use, or the negative of that when representing a negative value.
(Overrides mp_base_mp_size.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToIntPtr
Gets the unmanaged memory pointer of the multiple precision floating-point number.
Public methodToString
Return the string representation of the float.
(Overrides ObjectToString.)
Top
Operators
Fields
  NameDescription
Public fieldPointer
Pointer to limbs in unmanaged memory.
(Inherited from mp_base.)
Top
Remarks

The floating point functions accept and return exponents in the C type mp_exp_t. Currently this is usually a long, but on some systems it’s an int for efficiency.

In .NET, this is a 32-bit integer.

See Also