You are here: Re: percentages in PHP « All PHP « IT news, forums, messages
Re: percentages in PHP

Posted by Geoff Berrow on 04/05/06 23:06

Message-ID: <bUUYf.878243$x96.643349@attbi_s72> from Chris H contained
the following:

>What does (int) do? I recognize it as something to do with "integer". but im
>not sure what exactly the purpose is of the (int) is

http://uk2.php.net/manual/en/language.types.type-juggling.php#language.types.typecasting

That said, I don't really know why it's there. The result of dividing
something by 0.7 is quite likely to be something other than an integer.

There is even a warning about it
http://uk2.php.net/manual/en/language.types.integer.php#language.types.integer.casting
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

 

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

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