Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Clojure
(parse-double s)
(read-string s)

Uses the Clojure reader to parse a string into a float and is thus platform agnostic.
(Float/parseFloat s)

This calls down to Java, and thus only when running Clojure on that platform.
float f = std::stof(s);

New implementation...