about summary refs log tree commit diff stats
path: root/html/archive/2.vm/f2c-2.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-27 16:01:55 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-27 17:47:59 -0700
commit6e1eeeebfb453fa7c871869c19375ce60fbd7413 (patch)
tree539c4a3fdf1756ae79770d5c4aaf6366f1d1525e /html/archive/2.vm/f2c-2.mu
parent8846a7f85cc04b77b2fe8a67b6d317723437b00c (diff)
downloadmu-6e1eeeebfb453fa7c871869c19375ce60fbd7413.tar.gz
5485 - promote SubX to top-level
Diffstat (limited to 'html/archive/2.vm/f2c-2.mu')
-rw-r--r--html/archive/2.vm/f2c-2.mu9
1 files changed, 9 insertions, 0 deletions
diff --git a/html/archive/2.vm/f2c-2.mu b/html/archive/2.vm/f2c-2.mu
new file mode 100644
index 00000000..ded2a640
--- /dev/null
+++ b/html/archive/2.vm/f2c-2.mu
@@ -0,0 +1,9 @@
+# c = (f-32) * 5/9
+def fahrenheit-to-celsius [
+  local-scope
+  f:number <- next-ingredient
+  tmp:number <- subtract f, 32
+  tmp <- multiply tmp, 5
+  c:number <- divide tmp, 9
+  return c
+]