RE: [PHP] Math Weirdness

This is a discussion on RE: [PHP] Math Weirdness within the PHP General forums, part of the PHP Programming Forums category; At 4:45 PM -0400 7/14/08, Daniel Brown wrote: > That's as far OT as I'm ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 07-14-2008
tedd
 
Posts: n/a
Default Re: [PHP] Math Weirdness - Can it be done with integers alone??

At 4:45 PM -0400 7/14/08, Daniel Brown wrote:
> That's as far OT as I'm going, but it's worth noting how
>regulation doesn't do shit if it's not enforced.


The only thing that's regulated AND enforced is what you owe the government.

Don't get me started. :-)

Cheers,

tedd

--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
Reply With Quote
  #12 (permalink)  
Old 07-15-2008
Waynn Lue
 
Posts: n/a
Default Re: [PHP] Math Weirdness - Can it be done with integers alone??

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
>
>

Reply With Quote
  #13 (permalink)  
Old 07-15-2008
Jochem Maas
 
Posts: n/a
Default Re: [PHP] Math Weirdness - Can it be done with integers alone??

tedd schreef:
> At 4:45 PM -0400 7/14/08, Daniel Brown wrote:
>> That's as far OT as I'm going, but it's worth noting how
>> regulation doesn't do shit if it's not enforced.

>
> The only thing that's regulated AND enforced is what you owe the
> government.


actually your under no obligation to declare any income tax in your
country, look into it


>
> Don't get me started. :-)
>
> Cheers,
>
> tedd
>


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:34 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0