I am facing problem for getting the value of after decimal
<?php
$a=5.4243423;
$c = round($a,1);
echo $c;
?>
Out put is 5.4
How to get 4 value?
Any body help me to get after decimal value
I am facing problem for getting the value of after decimal
<?php
$a=5.4243423;
$c = round($a,1);
echo $c;
?>
Out put is 5.4
How to get 4 value?
Any body help me to get after decimal value
Jump to PostYou already have the 4. Can you reword your quetion, it doesn't make sense.
You already have the 4. Can you reword your quetion, it doesn't make sense.
Sorry DaveAmour,
I confused,
I wont repeat like this,
Ramu
Thanks pzuurveen.
your link help me to get.
thanks
Ok I see now you wanted to get the decimal portion!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.