<?php function getPercent($y, $x){ $percent = $x/$y; return number_format( $percent * 100, 2 ) . '%'; } echo getPercent(36, 24);
You have javascript disabled. You will not be able to edit any code.