[math] Another Question about Precision.round()

2015-12-12 Thread Ole Ersoy
Hi, In Precision there are these two methods: [1] public static double round(double x, int scale, int roundingMethod) [2] public static float round(float x, int scale, int roundingMethod) The implementations for each are different. For [2] could users just convert float to double and use [1]

[Math] Precision.roundUnscaled BIG_DECIMAL

2015-12-12 Thread Ole Ersoy
Hi, I'm creating a new utilities module and I'm trying to decide whether to keep the below code block (Contained in the Precision.roundUnscaled() method - BTW it contains a new exception type I'm playing with - see https://github.com/firefly-math/firefly-math-exceptions if interested - the ut