Coercions to host number types.

bigdec

Available since version 1.0 (alias of clojure.core/bigdec)

not referred automatically

Usage:
  • (bigdec x)

Type signature:
  • (Any) → java.math.BigDecimal

Coerce to BigDecimal

bigint

Available since version 1.0 (alias of clojure.core/bigint)

not referred automatically

Usage:
  • (bigint x)

Type signature:
  • (Any) → clojure.lang.BigInt

Coerce to BigInt

biginteger

Available since version 1.0 (alias of clojure.core/biginteger)

not referred automatically

Usage:
  • (biginteger x)

Type signature:
  • (Any) → java.math.BigInteger

Coerce to BigInteger

byte

Available since version 1.0 (alias of clojure.core/byte)

not referred automatically

Usage:
  • (byte x)

Type signature:
  • (Any) → java.lang.Byte

Coerce to byte

double

Available since version 1.0 (alias of clojure.core/double)

not referred automatically

Usage:
  • (double x)

Type signature:
  • (Any) → java.lang.Double

Coerce to double

float

Available since version 1.0 (alias of clojure.core/float)

not referred automatically

Usage:
  • (float x)

Type signature:
  • (Any) → java.lang.Float

Coerce to float

int

Available since version 1.0 (alias of clojure.core/int)

not referred automatically

Usage:
  • (int x)

Type signature:
  • (Any) → java.lang.Integer

Coerce to int

long

Available since version 1.0 (alias of clojure.core/long)

not referred automatically

Usage:
  • (long x)

Type signature:
  • (Any) → java.lang.Long

Coerce to long

number

Available since version 1.0 (alias of clojure.core/num)

not referred automatically

Usage:
  • (number x)

Type signature:
  • (Any) → Number+

Coerce to Number

See also: dunaj.math/num

short

Available since version 1.0 (alias of clojure.core/short)

not referred automatically

Usage:
  • (short x)

Type signature:
  • (Any) → java.lang.Short

Coerce to short

unchecked-byte

Available since version 1.0 (alias of clojure.core/unchecked-byte)

not referred automatically

Usage:
  • (unchecked-byte x)

Type signature:
  • (Any) → java.lang.Byte

Coerce to byte. Subject to rounding or truncation.

unchecked-double

Available since version 1.0 (alias of clojure.core/unchecked-double)

not referred automatically

Usage:
  • (unchecked-double x)

Type signature:
  • (Any) → java.lang.Double

Coerce to double. Subject to rounding.

unchecked-float

Available since version 1.0 (alias of clojure.core/unchecked-float)

not referred automatically

Usage:
  • (unchecked-float x)

Type signature:
  • (Any) → java.lang.Float

Coerce to float. Subject to rounding.

unchecked-int

Available since version 1.0 (alias of clojure.core/unchecked-int)

not referred automatically

Usage:
  • (unchecked-int x)

Type signature:
  • (Any) → java.lang.Integer

Coerce to int. Subject to rounding or truncation.

unchecked-long

Available since version 1.0 (alias of clojure.core/unchecked-long)

not referred automatically

Usage:
  • (unchecked-long x)

Type signature:
  • (Any) → java.lang.Long

Coerce to long. Subject to rounding or truncation.

unchecked-short

Available since version 1.0 (alias of clojure.core/unchecked-short)

not referred automatically

Usage:
  • (unchecked-short x)

Type signature:
  • (Any) → java.lang.Short

Coerce to short. Subject to rounding or truncation.