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