Php 2 decimal, mesmo que não exista

number_format((float)$number, 2, '.', '')
JérômeW