i have tried the example link that was provided and got this to work in my code..
I now have the 1.000 to show right, but I can't figure out how to get the 0.000 to display as .000
any ideas anyone
$pcent2 = ROUND('1.000' - ($p_array[$playerid][goalsa] / $p_array[$playerid][shotsa]), 3);
$p_array[$playerid][svp] = number_format($pcent2, 3, '.', ',');