Class Numerical
java.lang.Object
com.jackmeng.halcyoninae.halcyon.utils.Numerical
A class used to do things with numbers
- Since:
- 3.3
- Author:
- Jack Meng
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static double
__classifier_method
(double f1, double f2) A bound methodstatic double
__safe_divide
(double f1, double f2) Safely divide two numbers
-
Constructor Details
-
Numerical
private Numerical()
-
-
Method Details
-
__safe_divide
public static double __safe_divide(double f1, double f2) Safely divide two numbers- Parameters:
f1
- The numeratorf2
- The denominator- Returns:
- Safe Quotient
- Since:
- 3.3
-
__classifier_method
private static double __classifier_method(double f1, double f2) A bound method- Parameters:
f1
- Func1 requires first paramf2
- Func2 requires second param- Returns:
- A double
-