diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-03-08 02:01:28 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-03-08 02:01:28 -0800 |
commit | e33cf8b3660016acf4be5b6b7eac6324947c0c3f (patch) | |
tree | 3b33d8003c5cdcee4e3696c0435b68dd3661d502 | |
parent | 1ead356219bb2eb59487d1012f837bd07ec336f5 (diff) | |
download | mu-e33cf8b3660016acf4be5b6b7eac6324947c0c3f.tar.gz |
2736
-rw-r--r-- | html/f2c.mu | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/html/f2c.mu b/html/f2c.mu new file mode 100644 index 00000000..e3aa8f6c --- /dev/null +++ b/html/f2c.mu @@ -0,0 +1,8 @@ +# c = (f-32) * 5/9 +recipe fahrenheit-to-celsius f:number -> c:number [ + local-scope + load-ingredients + tmp:number <- subtract f, 32 + tmp <- multiply tmp, 5 + c <- divide tmp, 9 +] |