Liking cljdoc? Tell your friends :D

helins.binf.int

Handling integers (maximum 32-bits), miscellaneous coercions.

64-bit integers are handled in helins.binf.int64.

Handling integers (maximum 32-bits), miscellaneous coercions.

64-bit integers are handled in `helins.binf.int64`.
raw docstring

from-floatclj/s

(from-float floating)

Truncates a float value to an integer (eg. 42.7 to 42).

Truncates a float value to an integer (eg. `42.7` to `42`).
sourceraw docstring

i16clj/s

(i16 max-b32)
(i16 b8-1 b8-2)

Converts an integer (maximum 32-bits) to a signed 8-bit integer.

Converts an integer (maximum 32-bits) to a signed 8-bit integer.
sourceraw docstring

i32clj/s

(i32 max-b32)
(i32 b16-1 b16-2)
(i32 b8-1 b8-2 b8-3 b8-4)

Converts an integer (maximum 32-bits) to a signed 32-bit integer.

Converts an integer (maximum 32-bits) to a signed 32-bit integer.
sourceraw docstring

i64clj/s

(i64 b32-1 b32-2)
(i64 b16-1 b16-2 b16-3 b16-4)
(i64 b8-1 b8-2 b8-3 b8-4 b8-5 b8-6 b8-7 b8-8)

Combines different integers (maximum 32-bits) into a signed 64-bit integer.

See the helins.binf.int64 namespace for how to use 64-bit integers.

Combines different integers (maximum 32-bits) into a signed 64-bit integer.

See the `helins.binf.int64` namespace for how to use 64-bit integers.
sourceraw docstring

i8clj/s

(i8 max-b32)

Converts an integer (maximum 32-bits) to a signed 8-bit integer.

Converts an integer (maximum 32-bits) to a signed 8-bit integer.
sourceraw docstring

strclj/s

(str max-b32)
(str radix max-b32)

Converts the given integer into a string.

A radix can be provided (eg. 16 for hexadecimal or 2 for binary).

Converts the given integer into a string.

A radix can be provided (eg. 16 for hexadecimal or 2 for binary).
sourceraw docstring

u16clj/s

(u16 max-b32)
(u16 b8-1 b8-2)

Converts an integer (maximum 32-bits) to an unsigned 16-bit integer.

Converts an integer (maximum 32-bits) to an unsigned 16-bit integer.
sourceraw docstring

u32clj/s

(u32 max-b32)
(u32 b16-1 b16-2)
(u32 b8-1 b8-2 b8-3 b8-4)

Converts an integer (maximum 32-bits) to an unsigned 32-bit integer.

Converts an integer (maximum 32-bits) to an unsigned 32-bit integer.
sourceraw docstring

u64clj/s

(u64 b32-1 b32-2)
(u64 b16-1 b16-2 b16-3 b16-4)
(u64 b8-1 b8-2 b8-3 b8-4 b8-5 b8-6 b8-7 b8-8)

Combines different integers (maximum 32-bits) into an unsigned 64-bit integer.

See the helins.binf.int64 namespace for how to use 64-bit integers.

Combines different integers (maximum 32-bits) into an unsigned 64-bit integer.

See the `helins.binf.int64` namespace for how to use 64-bit integers.
sourceraw docstring

u8clj/s

(u8 max-b32)

Converts an integer (maximum 32-bits) to an unsigned 8-bit integer.

Converts an integer (maximum 32-bits) to an unsigned 8-bit integer.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close