MfFloat

Namespace ›› System ››
Parent Previous Next

MfFloat Class

(Inherits from MfPrimitive)

Represents a double-precision floating-point number.

Links

Fields, Properties, Methods

Constructors


Name

Description

Constructor([val, retunAsObj, readonly, format])

Initializes a new instance of the MfFloat class optionally setting the Value property, ReturnAsObject property, Readonly and Format property property.

Fields


Name

Description

MaxValue

Represents the largest possible value of MfFloat. This field is constant.

MinValue

Represents the smallest possible value of MfFloat. This field is constant.

NaN

Represents a value that is not a number (NaN) of MfFloat. This field is constant.

NegativeInfinity

Represents negative infinity of MfFloat. This field is constant.

PositiveInfinity

Represents positive infinity of MfFloat. This field is constant.

Properties


Name

Description

DecimalPlaces

Gets or sets the value associated with the DecimalPlaces part of the Format

Format

Gets the format associated with the format of the float value

ReadOnly

Gets the if the derived class will allow the underlying value to be altered after the constructor has been called. Inherited from MfPrimitive.

ReturnAsObject

Gets or sets the if the MfByte class will return objects as their return value for various functions. Inherited from MfPrimitive

Value

Gets or sets the value associated with the this instance. Overrides MfPrimitive.Value.

Methods


Name

Description

Add(value)

Adds Float value to current instance of MfFloat.

CompareTo(obj)

Compares this instance to a specified MfFloat object. Overrides MfObject.CompareTo()

Divide(value)

Divides the current instance of MfFloat by the divisor value.

Equals(value)

Gets if this instance Value is the same as the value instance. Overrides MfObject.Equals()

GetHashCode()

Gets A hash 32 bit hash code for the MfFloat instance. Overrides MfObject.GetHashCode()

GetTrimmed()

Gets a float that has all leading and trailing 0's and spaces removed removed.

GetType()

Gets the Type for the for the Class .Inherited from MfObject.

GetTypeCode()

Get an enumeration value of MfTypeCode the represents MfFloat Type Code.

GetValue(Obj)

Gets the Float number from Object or var containing float. Overrides MfPrimitive.GetValue()

GetValue(Obj, Default)

Gets a Float number from Obj or returns Default value if Obj is unable to be converted to flaot. Default must be a value that can be converted to float or it will be ignored if Obj can not be converted to float an error will be thrown.. Overrides MfPrimitive.GetValue()

GetValue(Obj, Default, AllowAny)

Gets a float var from Obj or returns Default value if Obj is unable to be converted to float.Default can be something other then a number or float if AllowAny is true.. Overrides MfPrimitive.GetValue()

GreaterThen(value)

Compares the current MfFloat object to a specified MfFloat object and returns an indication of their relative values.

GreaterThenOrEqual(value)

Compares the current MfFloat object to a specified MfFloat object and returns an indication of their relative values.

IsInfinity(obj)

Returns a value indicating whether the specified number evaluates to negative or positive infinity

IsNaN(obj)

Returns a value that indicates whether the specified value is not a number (NaN).

IsNegativeInfinity(obj)

Returns a value indicating whether the specified number evaluates to negative infinity.

IsPositiveInfinity(obj)

Returns a value indicating whether the specified number evaluates to positive infinity.

LessThen(value)

Compares the current MfFloat object to a specified MfFloat object and returns an indication of their relative values.

LessThenOrEqual(value)

Compares the current MfFloat object to a specified MfFloat object and returns an indication of their relative values.

Multiply(value)

Multiplies the current instance of MfFloat by the value.

Is(type)

Gets if current instance of object is of the same type. Inherited from MfObject. Inherited from MfObject.

IsInstance()

Get if the current class is an instance. Inherited from MfObject.

MemberwiseClone()

Creates a shallow copy of the current MfObject instance. Inherited from MfObject.

Parse(s)

Converts the s representation of a number to its MfFloat equivalent

Parse(s, style)

Converts the s representation of a number to its MfFloat equivalent

Parse(s, provider)

Converts the s representation of a number to its MfFloat equivalent

Parse(s, style, provider)

Converts the s representation of a number to its MfFloat equivalent

Subtract(value)

Subtract Float value from current instance of MfFloat.

ToInteger(flt)

Converts the value of the specified MfFloat to the equivalent MfInteger

ToString()

Gets a string representation of the Value of the object. Overrides MfPrimitive.ToString()

TryParse(ByRef result, s)

Tries to converts the s representation of a number to its MfFloat equivalent. A return value indicates whether the conversion succeeded.

TryParse(ByRef result, s, style[, provider ])

Tries to converts the s representation of a number to its MfFloat equivalent. A return value indicates whether the conversion succeeded.