Search Results for

    Show / Hide Table of Contents

    Class FloatingPoint

    A Value representing a floating point value. This may hold a System.Decimal's worth of data.

    Inheritance
    System.Object
    Value
    FloatingPoint
    Inherited Members
    Value.Null()
    Value.List()
    Value.Map()
    Value.From(String)
    Value.Text(String)
    Value.From(Int64)
    Value.Integer(Int64)
    Value.From(Decimal)
    Value.Float(Decimal)
    Value.From(Boolean)
    Value.Bool(Boolean)
    Value.From(IEnumerable<Value>)
    Value.From(IDictionary<String, Value>)
    Value.From(IEnumerable<KeyValuePair<String, Value>>)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: IPA.Config.Data
    Assembly: IPA.Loader.dll
    Syntax
    public sealed class FloatingPoint : Value

    Constructors

    | Improve this Doc View Source

    FloatingPoint()

    Constructs an empty FloatingPoint object.

    Declaration
    [Obsolete("Use the long constructor.")]
    public FloatingPoint()
    | Improve this Doc View Source

    FloatingPoint(Decimal)

    Constructs a FloatingPoint object containing the provided value.

    Declaration
    public FloatingPoint(decimal value)
    Parameters
    Type Name Description
    System.Decimal value

    The value to construct with.

    Properties

    | Improve this Doc View Source

    Value

    The actual value fo this FloatingPoint object.

    Declaration
    public decimal Value { get; set; }
    Property Value
    Type Description
    System.Decimal

    Methods

    | Improve this Doc View Source

    AsInteger()

    Coerces this FloatingPoint into an Integer.

    Declaration
    public Integer AsInteger()
    Returns
    Type Description
    Integer

    a Integer representing the closest approximation of Value

    | Improve this Doc View Source

    ToString()

    Converts this Value into a human-readable format.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    the result of Value.ToString()

    Overrides
    Value.ToString()

    Extension Methods

    ReflectionUtil.SetField<T, U>(T, String, U)
    ReflectionUtil.GetField<U, T>(T, String)
    ReflectionUtil.SetProperty<T, U>(T, String, U)
    ReflectionUtil.GetProperty<U, T>(T, String)
    ReflectionUtil.InvokeMethod<U, T>(T, String, Object[])
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX