0

Exampel of decimal numbers

hi givime the exampel of decimal number and non decimal number in php (integere) datatype.

28th Aug 2016, 6:23 AM
vinay
vinay - avatar
3 Respostas
0
$a = 10.453; // float $b = 10453; // integer
28th Aug 2016, 7:41 AM
francis
0
In PHP, we are not required to specify the datatype of a variable while declaring it. It does so itself. Ex: $a = 10 not like this: int $a = 10 similarly $b=26 //integer and $b =10.7 //float
28th Aug 2016, 8:30 AM
Rishabh Rastogi
0
Thanks for writing good answers. i will understand your answer
28th Aug 2016, 3:57 PM
vinay
vinay - avatar