public class MathFunctions
extends java.lang.Object
Constructor and Description |
---|
MathFunctions() |
Modifier and Type | Method and Description |
---|---|
static <T> |
divide(
Deprecated.
since 0.9.0; use
Functionals#chain(Function, Function) and divide(double) |
static |
divide(double divisor) |
static |
percent(int significantDigits)
returns a string where the input number is expressed as percent, with given number of significant digits
|
static |
plus(double addend) |
static |
plus(int addend) |
static |
plus(long addend) |
static |
readableString(int significantDigits,
int maxLen)
returns a string of up to maxLen length (longer in extreme cases) also capped at significantDigits significantDigits
|
static |
times(double multiplicand) |
static |
times(int multiplicand) |
static |
times(long multiplicand) |
public staticplus(int addend)
public staticplus(long addend)
public staticplus(double addend)
public statictimes(int multiplicand)
public statictimes(long multiplicand)
public statictimes(double multiplicand)
public staticdivide(double divisor)
public static <T>divide( preprocessor, double divisor)
public staticreadableString(int significantDigits, int maxLen)
public staticpercent(int significantDigits)