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.

->boolean

(->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

->double

(->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

->long

(->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