math: add double precision error handling functions
6 files changed