You are here: Re: why does 69.99*100=6998? « PHP Programming Language « IT news, forums, messages
Re: why does 69.99*100=6998?

Posted by Michael Fesser on 02/01/08 20:11

..oO(The Natural Philosopher)

>Right. So every other php funtion treats 6999 as 6999,. except printf's %d.

Of course a 6999 is treated as a 6999. But your value wasn't a 6999 int,
it was a float.

>If you use %s, it works..
>
>Invisible casting has to be the worst thing ever.

I would say in this case it was a user error.

Micha

 

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

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