3 Mar
2014
3 Mar
'14
11:23 a.m.
On Mon, Mar 3, 2014 at 11:54 AM, Steven D'Aprano
If it's worth having a decimal maths library, its probably worth having it in 3.5 or 3.6.
Agreed. I'm -1 on a decimal-specific math library, though. What I would rather see is a type-agnostic math library, that does what (IIRC) the new statistics module does: take in numbers of any type, coerce only as is strictly necessary, calculate, and return an answer of the same type as the input with the goal of correctness over performance. If all input is float (or complex), calculation could be delegated to the existing math (or cmath) libraries, and performance wouldn't be too much worse than using those libraries directly. -- Zach