We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d762e8c commit fe934f0Copy full SHA for fe934f0
base/math.jl
@@ -776,9 +776,10 @@ end
776
ldexp(x::Float16, q::Integer) = Float16(ldexp(Float32(x), q))
777
778
"""
779
- exponent(x) -> Int
+ exponent(x::AbstractFloat) -> Int
780
781
Get the exponent of a normalized floating-point number.
782
+Returns the largest integer `y` such that `2^y ≤ abs(x)`.
783
784
function exponent(x::T) where T<:IEEEFloat
785
@noinline throw1(x) = throw(DomainError(x, "Cannot be NaN or Inf."))
0 commit comments