Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion base/float.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function ieee754_representation(
end

"""
uabs(x::Integer)
Base.uabs(x::Integer)

Return the absolute value of `x`, possibly returning a different type should the
operation be susceptible to overflow. This typically arises when `x` is a two's complement
Expand Down
3 changes: 3 additions & 0 deletions base/public.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public
isoperator,
isunaryoperator,

# scalar math
uabs,

# C interface
cconvert,
unsafe_convert,
Expand Down
1 change: 1 addition & 0 deletions doc/src/base/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ Base.invmod
Base.powermod
Base.ndigits
Base.add_sum
Base.uabs
Base.widemul
Base.Math.evalpoly
Base.Math.@evalpoly
Expand Down