Skip to content

ex1 09

← Back

Basic Info

Functional Programming
└── Lab ML
    └── 0​307
        └── ex1 09.sml

Preview

(*Round a real number to the nearest 10th.*)

fun rnd (r) = real (round(r *10.0)) / 10.0;