java.lang.Object
org.kink_lang.kink.NumVal.Helper
- Enclosing class:
NumVal
The helper for num vals.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionof(int intNum) Returns a num value representing the specified number.of(long longNum) Returns a num value representing the specified number.of(long mantissa, int scale) Returns a num value (Mantissa=mantissa, Scale=scale).of(BigDecimal bigDecimal) Returns a num value representing the specified number.of(BigInteger bigInt) Returns a num value representing the specified number.
-
Method Details
-
of
Returns a num value representing the specified number.- Parameters:
intNum- an int number.- Returns:
- a num val representing the specified number.
-
of
Returns a num value representing the specified number.- Parameters:
longNum- a long number.- Returns:
- a num val representing the specified number.
-
of
Returns a num value (Mantissa=mantissa, Scale=scale).- Parameters:
mantissa- Mantissa attribute.scale- Scale attribute.- Returns:
- a num value (Mantissa=mantissa, Scale=scale).
- Throws:
IllegalArgumentException- for overflow.
-
of
Returns a num value representing the specified number.- Parameters:
bigInt- a BigInteger number.- Returns:
- a num val representing the specified number.
- Throws:
IllegalArgumentException- for overflow.
-
of
Returns a num value representing the specified number.- Parameters:
bigDecimal- a BigDecimal number.- Returns:
- a num val representing the specified number.
- Throws:
IllegalArgumentException- for overflow.
-