Package convex.core.data
Interface INumeric
public interface INumeric
Interface for CVM Numeric types
-
Method Details
-
toLong
CVMLong toLong() -
toDouble
CVMDouble toDouble() -
doubleValue
double doubleValue() -
numericType
Class<?> numericType()Gets the numeric type that should be used as for calculations- Returns:
- Double.class or Long.class, or null if not a numeric type
-
signum
APrimitive signum()Gets the signum of this numerical value. Will be -1, 0 or 1 for Longs, -1.0, 0.0 , 1.0 or ##NaN for Doubles.- Returns:
- Signum of the numeric value
-
toStandardNumber
INumeric toStandardNumber()
-