Re: Math Weirdness - Can it be done with integers alone??
| From: | Waynn Lue | Date: | Tue, 15 Jul 2008 09:27:41 +0000 |
| Subject: | Re: Math Weirdness - Can it be done with integers alone?? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276810@lists.php.net to get a copy of this message | ||
There's an algorithm known as banker's rounding that I thought all US
banks used. I'm on blackberry right now so I don't have a pointer, but
essentially you round to the nearest even cent. 1.5 goes to 2, as does
2.5.
Waynn
On 7/15/08, tedd <tedd.sperling@gmail.com> wrote:
> At 4:15 PM -0400 7/14/08, Robert Cummings wrote:
>>
>>
>>Nope, banks can't round like that when calculating your daily
>>interest :)
>>
>>Cheers,
>>Rob.
>
> I do know that when it comes to interest you pay them, they round up.
> When it comes to interest they pay you, they round down -- and why
> not? A decision has to be made -- you can't pay someone less than a
> penny.
>
> Cheers,
>
> tedd
>
> --
> -------
> http://sperling.com
> http://ancientstones.com
> http://earthstones.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>