I have the following code:
$distance="distance";
$d=26.21865;
$h=2;
$m=31;
$s=14.22;
$t=$h*3600+$m*60+$s;
$pace=$t/$d;
//*Set up concatenation
$pm = intval ($pace/60);
$ps = number_format(($pace%60), 2, ".", ",");
if ($d=26.21865)
print("Your time for the "." ".$distance." "."is: ".$h.":".$m.":".$s.".<br>");
print("Your pace is: ".$pm.":".$ps.".");
The number_format function did just what I needed, however, I am looking for the decimal place to contain values. As of right now, using this code above, it gives me, using 45.11 as a hypothetical, 45.00, where the .00 should be .11. I think the %60 mod is the issue because when I removed the %60, it gave me my .10, but don't see a way around using base 60. Thanks again for the help.