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`.
(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`).
(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.
(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.
(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.
(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.
(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).
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close