php convert float to decimal code example Example 1: php float to int $int = intval($float); Example 2: php float to number format 2 100,000 100,000.00 100,000.000 100.000,00