Liking cljdoc? Tell your friends :D

datahike.pg.numeric-format

PostgreSQL-compatible numeric format pictures for to_char/to_number.

PostgreSQL's numeric pictures are a small language rather than Java DecimalFormat patterns. Keeping the parser and both directions together is important: D/G, V, signs, fill mode, Roman numerals and quoted literals must mean the same thing when formatting and parsing.

PostgreSQL-compatible numeric format pictures for to_char/to_number.

PostgreSQL's numeric pictures are a small language rather than Java
DecimalFormat patterns. Keeping the parser and both directions together is
important: D/G, V, signs, fill mode, Roman numerals and quoted literals must
mean the same thing when formatting and parsing.
raw docstring

parse-pictureclj

(parse-picture picture)

Tokenize a PostgreSQL numeric format picture. Double-quoted regions are literal; a backslash only escapes characters while inside such a region, matching formatting.c's format parser.

Tokenize a PostgreSQL numeric format picture. Double-quoted regions are
literal; a backslash only escapes characters while inside such a region,
matching formatting.c's format parser.
sourceraw docstring

to-charclj

(to-char value picture)

Format a numeric value with a PostgreSQL numeric picture. Locale-sensitive tokens currently use the C-locale spellings, which is also what the regression campaign fixes with lc_numeric = C.

Format a numeric value with a PostgreSQL numeric picture. Locale-sensitive
tokens currently use the C-locale spellings, which is also what the
regression campaign fixes with lc_numeric = C.
sourceraw docstring

to-numberclj

(to-number input picture)

Parse text according to a PostgreSQL numeric picture. The numeric parser is intentionally permissive about punctuation and spacing, as PostgreSQL's NUM_processor is; the picture determines decimal placement and V scaling.

Parse text according to a PostgreSQL numeric picture. The numeric parser is
intentionally permissive about punctuation and spacing, as PostgreSQL's
NUM_processor is; the picture determines decimal placement and V scaling.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close