public class ApfloatCalculatorImpl extends FunctionCalculatorImpl
FunctionCalculatorImpl.FixedFunction, FunctionCalculatorImpl.Function, FunctionCalculatorImpl.Functions
Constructor and Description |
---|
ApfloatCalculatorImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
format(Number x)
Convert a number to a String.
|
protected FunctionCalculatorImpl.Functions |
getFunctions(Number x)
Get the function implementations.
|
Number |
parseDecimal(String value)
Parse a string to a floating-point number.
|
Number |
parseInteger(String value)
Parse a string to an integer number.
|
protected Number |
promote(Number x)
Promote a number to a more specific class.
|
function, setFunction
add, divide, getFormat, getVariable, mod, multiply, negate, pow, setFormat, setVariable, subtract
public Number parseInteger(String value)
CalculatorImpl
value
- The string to parse.public Number parseDecimal(String value)
CalculatorImpl
value
- The string to parse.public String format(Number x)
CalculatorImpl
x
- The number.protected FunctionCalculatorImpl.Functions getFunctions(Number x)
FunctionCalculatorImpl
getFunctions
in class FunctionCalculatorImpl
x
- The number to use as the function argument.protected Number promote(Number x)
FunctionCalculatorImpl
promote
in class FunctionCalculatorImpl
x
- The argument.Copyright © 2019. All rights reserved.