Answers for "php float value convert"

PHP
0

Convert String to Float in PHP

phpCopy<?php
$mystring = "0.5674";
echo("This float number is of string data type ");
echo($mystring);
echo("\n");
$myfloat = floatval($mystring);
echo("Now, this float number is of float data type ");
echo($myfloat);
?>
Posted by: Guest on April-23-2021
0

php convert float

parseFloat( num.toFixed(2) )
Posted by: Guest on July-14-2021

Browse Popular Code Answers by Language