Created
July 18, 2017 17:59
-
-
Save rafaelrinaldi/2e651686826b876979a58588b3a20e36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns private.tmp.units) | |
(defn- ounces->kg | |
[input] | |
(let [lb 16 ;; 1kg → 16lb | |
oz 2.2] ;; 1kg → 2.2oz | |
(->> (/ input lb oz) (format "%.3f kg")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment