Liking cljdoc? Tell your friends :D

utilis.types.number


string->doubleclj/s

(string->double s)
(string->double s default)

Attempts to convert 's' into a double. If it cannot be converted, an optional 'default' value is returned.

If no default is specified, a nil is used as the default.

Attempts to convert 's' into a double. If it cannot be converted,
an optional 'default' value is returned.

If no default is specified, a nil is used as the default.
sourceraw docstring

string->longclj/s

(string->long s)
(string->long s default)

Attempts to convert 's' into a long. If it cannot be converted, an optional 'default' value is returned.

If no default is specified, a nil is used as the default.

Attempts to convert 's' into a long. If it cannot be converted,
an optional 'default' value is returned.

If no default is specified, a nil is used as the default.
sourceraw docstring

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

× close