str to float 2 decimal php code example
Example 1: string to float php
$floatValue = floatval("1.0");
Example 2: php float to number format 2
100,000
100,000.00
100,000.000
100.000,00
$floatValue = floatval("1.0");
100,000
100,000.00
100,000.000
100.000,00