Skip to content

clojure.core/abs

View this page on ClojureDocs

Type: function Added: Clojure 1.11 Examples: 2 Runnable: 2
([a])

Returns the absolute value of a. If a is Long/MIN_VALUE => Long/MIN_VALUE If a is a double and zero => +0.0 If a is a double and ##Inf or ##-Inf => ##Inf If a is a double and ##NaN => ##NaN

Examples

by edipofederle on
by cljlc on

Content from the matching ClojureDocs page, with authors credited on each contribution.