signum文档中的描述有微小错误。它说
If d is ##Inf or ##-Inf => d
但是,(java.lang.Math/signum d)的输出对于##Inf是1.0,对于##-Inf是-1.0。所以这一行可能可以删除。
但是,如果需要明确描述无穷大,那么
If d is ##Inf => 1.0
If d is ##-Inf => -1.0
next-down的文档是
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
这应该写成
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
round的文档是
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
这应该写成
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