You are here: Re: Value greater than value issue « PHP Programming Language « IT news, forums, messages
Re: Value greater than value issue

Posted by Acrobatic on 12/07/07 21:44

> For this particular instance, you should be able to solve the problem with:
>
> $val1=(intval)((floatval($_REQUEST['withdraw_amount']) + 0.005)* 100);
>
> This gets the float value, adds 0.005 to it then multiplies by 100. It
> then gets the integer value of the result. Repeat for the available
> balance.

Thanks guys for the advice. Jerry, your workaround did the trick.

 

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

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