Class Converter
Provides utility functions for custom converters.
Namespace: IPA.Config.Stores.Converters
Assembly: IPA.Loader.dll
Syntax
public static class Converter : object
Methods
| Improve this Doc View SourceFloatValue(Value)
Gets the floaing point value of a Value, coercing an Integer if necessary,
or null if val
is not an Integer or FloatingPoint.
Declaration
public static decimal? FloatValue(Value val)
Parameters
Type | Name | Description |
---|---|---|
Value | val | the Value to get the floaing point value of |
Returns
Type | Description |
---|---|
Nullable<Decimal> | the floaing point value of |
IntValue(Value)
Gets the integral value of a Value, coercing a FloatingPoint if necessary,
or null if val
is not an Integer or FloatingPoint.
Declaration
public static long? IntValue(Value val)
Parameters
Type | Name | Description |
---|---|---|
Value | val | the Value to get the integral value of |
Returns
Type | Description |
---|---|
Nullable<Int64> | the integral value of |