I am currently use the number_format PHP function but I do not want it to round my number at 2 decimal places. I need it to cut off all numbers past 2 decimal places with no rounding. I have searched hard for other functions that might work such as Round but had no luck making it work. Could someone please help me?
Current Code:
$amt1 comes out as "3,750.95 I need $amt1 to come out as "3,750.94" instead.
Thanks in advance
Current Code:
Code:
$amtr1 = 3,750.945;
$amt1 = number_format($amtr1, 2, '.', ',');
Thanks in advance