note 86456 rejected from function.sprintf by danbrown
| From: | danbrown@php.net | Date: | Mon, 20 Oct 2008 14:17:01 +0000 |
| Subject: | note 86456 rejected from function.sprintf by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145511@lists.php.net to get a copy of this message | ||
Note Submitter: anjum dot farrukh at gmail dot com
----
Can some one tell me how i can get the firt digit after decimal in PHP
Like i have a floating no.
$v = 9.56665
Actually i am calculating the years and months of experience after calculation i get
9.56666
I want to show that a person has got
9 Years 5 Months experience how its possilbe please tell me.
With Regards
Farrukh