java.lang.Object
org.kink_lang.kink.NumHelper
The helper for num vals.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionof(int intNum) Returns a num val representing the specified number.of(long longNum) Returns a num val representing the specified number.of(BigDecimal bigDecimal) Returns a num val representing the specified number.of(BigInteger bigInt) Returns a num val representing the specified number.
-
Method Details
-
of
Returns a num val representing the specified number.- Parameters:
bigDecimal- a BigDecimal number.- Returns:
- a num val representing the specified number.
- Throws:
IllegalArgumentException- when the scale is negative.
-
of
Returns a num val representing the specified number.- Parameters:
intNum- an int number.- Returns:
- a num val representing the specified number.
-
of
Returns a num val representing the specified number.- Parameters:
longNum- a long number.- Returns:
- a num val representing the specified number.
-
of
Returns a num val representing the specified number.- Parameters:
bigInt- a BigInteger number.- Returns:
- a num val representing the specified number.
-