note 86456 added to function.sprintf

From: Date: Mon, 20 Oct 2008 10:42:20 +0000
Subject: note 86456 added to function.sprintf
Groups: php.notes 
Request: Send a blank email to php-notes+get-145503@lists.php.net to get a copy of this message
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 ---- Server IP: 69.147.83.197 Probable Submitter: 202.125.157.242 ---- Manual Page -- http://www.php.net/manual/en/function.sprintf.php Edit -- https://master.php.net/note/edit/86456 Del: integrated -- https://master.php.net/note/delete/86456/integrated Del: useless -- https://master.php.net/note/delete/86456/useless Del: bad code -- https://master.php.net/note/delete/86456/bad+code Del: spam -- https://master.php.net/note/delete/86456/spam Del: non-english -- https://master.php.net/note/delete/86456/non-english Del: in docs -- https://master.php.net/note/delete/86456/in+docs Del: other reasons-- https://master.php.net/note/delete/86456 Reject -- https://master.php.net/note/reject/86456 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145503) next »