I looked over the (one less)
part, that's all I needed.
thanks for the help!
This means that I just had to decrease the value of the precision by one to get my function to behave the way I wanted.
See here for the function I came up with tot support scientific notation using sprintf
function sn($number,$precision = 1,$case = 'e'){ //scientific notation
$precision--;
$string = str_replace('+','',sprintf('%.'.$precision.$case, $number))." ";
return $string;
}