about summary refs log tree commit diff stats
path: root/html/f2c-1.mu
diff options
context:
space:
mode:
Diffstat (limited to 'html/f2c-1.mu')
-rw-r--r--html/f2c-1.mu8
1 files changed, 8 insertions, 0 deletions
diff --git a/html/f2c-1.mu b/html/f2c-1.mu
new file mode 100644
index 00000000..b81203c4
--- /dev/null
+++ b/html/f2c-1.mu
@@ -0,0 +1,8 @@
+# c = (f-32) * 5/9
+def fahrenheit-to-celsius f:number -> c:number [
+  local-scope
+  load-ingredients
+  tmp:number <- subtract f, 32
+  tmp <- multiply tmp, 5
+  c <- divide tmp, 9
+]