From 121772cebcb3c7b6e3f222ed2bd1a5d73eee6625 Mon Sep 17 00:00:00 2001 From: Daniel Mason Date: Mon, 2 Jan 2017 20:00:41 +1300 Subject: [PATCH] Added rounding to result totals --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 42d453e..4503187 100755 --- a/index.php +++ b/index.php @@ -125,7 +125,7 @@ if (isset($_POST['mark'])) { foreach($da as $c=>$d) { echo $d; } - echo $total."% Average

"; + echo round($total,2)."% Average

"; } } else {