diff options
Diffstat (limited to 'step-03/tut2.erl')
-rw-r--r-- | step-03/tut2.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/step-03/tut2.erl b/step-03/tut2.erl new file mode 100644 index 0000000..ecdd70a --- /dev/null +++ b/step-03/tut2.erl @@ -0,0 +1,8 @@ +-module(tut2). +-export([convert/2]). + +convert(M, inch) -> + M / 2.54; + +convert(N, centimeter) -> + N * 2.54. |