magento 2.3.3 php code example
Example: 2.30 will display 2.3 in php
echo floatval(7.00);
7
echo floatval(2.30);
2.3
echo floatval(1.25);
1.25
echo floatval(1.125);
1.125
echo (float) 7.00;
7
echo (float) 2.30;
2.3
echo (float) 1.25;
1.25
echo (float) 1.125;
1.125