Datasheet

The C and C++ Libraries
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-93
HUGE_VAL
is an alias for
Inf
. Consult the
errno
variable for the error number. Other than
the cases shown in Table 4-17 on page 4-92, all functions return
QNaN
when passed
QNaN
and throw an invalid operation exception when passed
SNaN
.
sqrt(x) x < 0 QNaN EDOM
sin(x) x=Inf QNaN EDOM
sinh(x)
Overflow
+Inf ERANGE
tan(x) x=Inf QNaN EDOM
atan(x) SNaN SNaN
None
ceil(x) SNaN SNaN
None
floor(x) SNaN SNaN
None
frexp(x) SNaN SNaN
None
ldexp(x) SNaN SNaN
None
modf(x) SNaN SNaN
None
tanh(x) SNaN SNaN
None
Table 4-17 Mathematical functions (continued)
Function Condition Returned value Error number