Package com.singularsys.jep.bigdecimal
Interface FixedPrecisionFunctionI
- All Known Implementing Classes:
BigDecAbs,BigDecAdd,BigDecComponents,BigDecDiv,BigDecFunctionTable,BigDecMod,BigDecMul,BigDecNegate,BigDecNumberFactory,BigDecOperatorTable,BigDecPow,BigDecRound,BigDecRoundSigFig,BigDecSignum,BigDecSub,BigDecVSum
public interface FixedPrecisionFunctionI
Functions, operators and components that support fixed precision operations.
If the number of decimal places is zero or a positive integer
then results of all intermediate operations be rounded to that
number of decimal places.
- Since:
- Jep 4.1
-
Method Summary
Modifier and TypeMethodDescriptionintGets the number of decimal places used.voidsetDecimalPlaces(int num_dp) Sets the number of decimal places to use.
-
Method Details
-
setDecimalPlaces
void setDecimalPlaces(int num_dp) Sets the number of decimal places to use.- Parameters:
num_dp- either zero, a positive number or -1 for floating-point formats
-
getDecimalPlaces
int getDecimalPlaces()Gets the number of decimal places used.- Returns:
- either zero, a positive number or -1 for floating-point formats
-