| round12_err | Function (ROM Call 0x227*)

timath.h

float round12_err (float x, short error_code);

Rounds the floating point number to 12 significant digits, throwing an error if unsuccessful.

round12_err is identical as round12, except it throws an error with code error_code if the absolute value of the argument is greater or equal than 10^1000, or if the argument is a transfinite number (see is_transfinite), and it rounds arguments whose absolute values are smaller than 10^-1000 to UNSIGNED_ZERO.

Uses: round12, _bcd_math
Used by: cmd_blddata, GZ_Center, CptFuncX, CptLastIndepDE, de_initRes, de_loop, dv_create_graph_titles, GM_Derivative, GM_DistArc, GM_TanLine, GZ_Decimal, GZ_Fit, GZ_InOut, GZ_Integer, GZ_Square, GZ_Trig, YCvtPtoF, VarStore