- simplify math functions by using common methods for input checks
- remove direct output from functions and dependency on Number::Format