public class NumberValue extends Procedure1
Modifier and Type | Field and Description |
---|---|
static java.lang.Double |
NaN |
static NumberValue |
numberValue |
applyToObject
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
nameKey
Constructor and Description |
---|
NumberValue() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
abs(java.lang.Object value) |
java.lang.Object |
apply1(java.lang.Object arg) |
static java.lang.Object |
ceiling(java.lang.Object val) |
static java.lang.Object |
floor(java.lang.Object val) |
static boolean |
isNaN(java.lang.Object arg) |
static java.lang.Number |
numberCast(java.lang.Object value) |
static java.lang.Object |
numberValue(java.lang.Object value) |
static java.lang.Object |
round(java.lang.Object arg) |
static java.lang.Object |
roundHalfToEven(java.lang.Object value) |
static java.lang.Object |
roundHalfToEven(java.lang.Object value,
IntNum precision) |
apply0, apply2, apply3, apply4, applyN, applyToObject, numArgs
applyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
public static final NumberValue numberValue
public static final java.lang.Double NaN
public static boolean isNaN(java.lang.Object arg)
public java.lang.Object apply1(java.lang.Object arg)
apply1
in class Procedure1
public static java.lang.Number numberCast(java.lang.Object value)
public static java.lang.Object numberValue(java.lang.Object value)
public static java.lang.Object abs(java.lang.Object value)
public static java.lang.Object floor(java.lang.Object val)
public static java.lang.Object ceiling(java.lang.Object val)
public static java.lang.Object round(java.lang.Object arg)
public static java.lang.Object roundHalfToEven(java.lang.Object value, IntNum precision)
public static java.lang.Object roundHalfToEven(java.lang.Object value)