about summary refs log tree commit diff stats
path: root/html/f2c-2.mu
diff options
context:
space:
mode:
Diffstat (limited to 'html/f2c-2.mu')
-rw-r--r--html/f2c-2.mu9
1 files changed, 9 insertions, 0 deletions
diff --git a/html/f2c-2.mu b/html/f2c-2.mu
new file mode 100644
index 00000000..ded2a640
--- /dev/null
+++ b/html/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
+]