You are here: Re: A math puzzler for you « PHP Programming Language « IT news, forums, messages
Re: A math puzzler for you

Posted by Geoff Berrow on 11/18/59 11:44

Message-ID: <1144438457.389536.252430@i40g2000cwc.googlegroups.com> from
monomaniac21 contained the following:

>I have a php code that generates numbers. sometimes is generates whole
>numbers but most of the time decimals. How can I, when it generates a
>whole number, convert the number to n.0
>where n is the whole number?


$var=23;

print number_format($var,1);

//outputs 23.0
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

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

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