The doc for signum has a small error. It says:
If d is ##Inf or ##-Inf => d
However, the output of (java.lang.Math/signum d)
is 1.0 for ##Inf and -1.0 for ##-Inf. So this line can possibly be removed.
However, if infinities should be explicitly described, then
If d is ##Inf => 1.0
If d is ##-Inf => -1.0
The doc for next-down
is:
Returns the adjacent double of d in the direction of ##-Inf.
If d is ##NaN => ##NaN
If d is ##Inf => ##-Inf
If d is zero => Double/MIN_VALUE
This should read:
Returns the adjacent double of d in the direction of ##-Inf.
If d is ##NaN => ##NaN
If d is ##Inf => Double/MAX_VALUE
If d is zero => -Double/MIN_VALUE
The doc for round
is:
Returns the closest long to a. If equally close to two values, return the one
closer to ##Inf.
If a is ##NaN => 0
If a is ##-Inf => ##-Inf
If a is ##Inf => ##Inf
This should read:
Returns the closest long to a. If equally close to two values, return the one
closer to ##Inf.
If a is ##NaN => 0
If a is ##-Inf => Long/MAX_VALUE
If a is ##Inf => Long/MIN_VALUE