Php 2 decimal incluso si no existe
number_format((float)$number, 2, '.', '')
JérômeW
number_format((float)$number, 2, '.', '')