You are here: Re: [PHP] Round with ONE-decimal... always... « PHP « IT news, forums, messages
Re: [PHP] Round with ONE-decimal... always...

Posted by "Gustav Wiberg" on 10/21/08 11:26

Thanx!

/G

----- Original Message -----
From: "George Pitcher" <george.pitcher@ingenta.com>
To: "Gustav Wiberg" <gustav@varupiraten.se>
Sent: Monday, September 12, 2005 10:55 AM
Subject: RE: [PHP] Round with ONE-decimal... always...


> Look at sprint_f() in the manual.
>
> George
>
>> -----Original Message-----
>> From: Gustav Wiberg [mailto:gustav@varupiraten.se]
>> Sent: 12 September 2005 9:52 am
>> To: PHP General
>> Subject: [PHP] Round with ONE-decimal... always...
>>
>>
>> Hi there!
>>
>> I want to adjust the round() -function a little...
>>
>> If I put round(6,0) there will be an output of 6
>> If I put round(6,32) there will be an output of 6,3
>>
>> I want it to have 6,0 instead of just 6... I guess there is an
>> easy solution
>> to this? Suggestions?
>>
>> /G
>> http://www.varupiraten.se/
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.21/96 - Release Date: 2005-09-10
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация