PHP Source:
<!DOCTYPE html>
<html>
<body>

<?php
$number = 123;
$txt = sprintf("%f",$number);
echo $txt;
?>

 
</body>
</html>
Result:
Show PHP - © w3schools.com
Privacy Policy