From 6e1eeeebfb453fa7c871869c19375ce60fbd7413 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 27 Jul 2019 16:01:55 -0700 Subject: 5485 - promote SubX to top-level --- html/archive/2.vm/f2c-2.mu | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 html/archive/2.vm/f2c-2.mu (limited to 'html/archive/2.vm/f2c-2.mu') 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 +] -- cgit 1.4.1-2-gfad0