Liking cljdoc? Tell your friends :D

cfml.coerce

Data type coercions that are useful when dealing with CFML. These are also useful when dealing with string inputs and you need numeric / boolean / etc data values.

Data type coercions that are useful when dealing with CFML.
These are also useful when dealing with string inputs and you
need numeric / boolean / etc data values.
raw docstring

->booleanclj

(->boolean v)
(->boolean v d)

Convert (string) value to a boolean. Return the default value if conversion fails. Accepts: Boolean, number, numeric strings, true/false and yes/no.

Convert (string) value to a boolean. Return the default value
if conversion fails.
Accepts: Boolean, number, numeric strings, true/false and yes/no.
sourceraw docstring

->doubleclj

(->double v)
(->double v d)

Convert (string) value to a double. Return the default value if conversion fails.

Convert (string) value to a double. Return the default
value if conversion fails.
sourceraw docstring

->longclj

(->long v)
(->long v d)

Convert (string) value to a long. Return the default value if conversion fails.

Convert (string) value to a long. Return the default
value if conversion fails.
sourceraw docstring

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

× close