Originally posted by Weedpacket
Take your pick; [man]round[/man], [man]floor[/man], [man]ceil[/man]. Between those and maybe the odd multiplication or division by 100, you should be able to put something together.
I already found the answer to my problem :
// truncates number to two decimal places without rounding off
$a = 132432.499911213356332;
$a = sprintf("%01.2lf", floor($a*100)/100);
I found this in the manual's user contributed notes, might help others..
Anyways, thanks for taking the time to peak in this thread..