show 2 digits max after floating point ... only if it is a float number with more than 2 float digits
<?php
$number = 25;
print round($number, 2);
print "\n";
$number = 25.3;
print round($number, 2);
print "\n";
$number = 25.33;
print round($number, 2);
prints:
25
25.3
25.33