ceil(3) – Linux man page
SUSv2 and POSIX.1-2001 contain text about overflow (which might seterrnotoERANGE, or raise anFE_OVERFLOWexception). In practice, the result cannot overflow on any current machine, so this error-handling stuff is just nonsense. (More precisely, overflow can happen only when the maximum value of the exponent is smaller than the number of mantissa bits. For the IEEE-754 standard … Read more