Liking cljdoc? Tell your friends :D

clj-cbor.tags.numbers

Built-in tag support for the number extensions in RFC 7049. See section 2.4.2.

Built-in tag support for the number extensions in RFC 7049. See section
2.4.2.
raw docstring

big-decimal-tagclj

Tag 4 indicates a decimal fraction represented by a tagged array with two items, an integer exponent and an integer or bignum mantissa. The value of a decimal fraction is m*(10**e).

Tag 4 indicates a decimal fraction represented by a tagged array with two
items, an integer exponent and an integer or bignum mantissa. The value of a
decimal fraction is `m*(10**e)`.
sourceraw docstring

format-big-decimalclj

(format-big-decimal value)
source

format-bignumclj

(format-bignum value)
source

format-ratioclj

(format-ratio value)
source

negative-bignum-tagclj

Tag 3 is for negative bignums. These are encoded the same as for positive bignums (tag 2), but the value of the bignum is -1 - n.

Tag 3 is for negative bignums. These are encoded the same as for positive
bignums (tag 2), but the value of the bignum is `-1 - n`.
sourceraw docstring

number-read-handlersclj

Map of tag codes to read handlers to parse number values.

Map of tag codes to read handlers to parse number values.
sourceraw docstring

number-write-handlersclj

Map of number types to write handler functions.

Map of number types to write handler functions.
sourceraw docstring

parse-big-decimalclj

(parse-big-decimal value)
source

parse-negative-bignumclj

(parse-negative-bignum value)
source

parse-positive-bignumclj

(parse-positive-bignum value)
source

parse-ratioclj

(parse-ratio value)
source

positive-bignum-tagclj

Tag 2 is for positive bignums, which are encoded as a byte string data item. This is interpreted as an unsigned integer n in network byte order.

Tag 2 is for positive bignums, which are encoded as a byte string data item.
This is interpreted as an unsigned integer `n` in network byte order.
sourceraw docstring

ratio-tagclj

Tag 30 is used to represent a rational number composed of two integers, a numerator and a denominator.

See: http://peteroupc.github.io/CBOR/rational.html

Tag 30 is used to represent a rational number composed of two integers, a
numerator and a denominator.

See: [http://peteroupc.github.io/CBOR/rational.html](http://peteroupc.github.io/CBOR/rational.html)
sourceraw docstring

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

× close