RE: [PHP] Math Weirdness



On Mon, 2008-07-14 at 15:33 -0400, Wolf wrote:
---- Robert Cummings <robert@xxxxxxxxxxxxx> wrote:
On Mon, 2008-07-14 at 14:12 -0500, Jay Blanchard wrote:
[snip]
So again... from whence do you conjure $endingBal? :)
[/snip]

$endingBal is conjured from the database tracking the account balance.
For any 24 hour period the beginning and ending balance for subsequent
days is the same unless adjustments or payments have been made to the
account in that period.

2:35 AM balance becomes the ending balance for the previous day and
becomes the beginning balance for the day we are beginning.

Isn't it possible then that your data is out of synch between the
current balance and the previous day's ending balance?

Cheers,
Rob.


See!!! I told you he was skimming the profits! Better check his desk for the "other" set of books! ;)

I'd suggest the int approach.

Yeah, I prefer to work with pennies too when doing that stuff. But
floats work much better when skimming... harder to track ;) Remind me
not to buy weed from Jay.

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

.



Relevant Pages

  • Re: GoPhone Fine Print
    ... >Cash payments are available with GoPhone ... >with a positive account balance. ... Rollover Balance: Pick Your ... Night & Weekend and Mobile to Mobile Minutes: ...
    (alt.cellular.cingular)
  • Re: GoPhone Fine Print
    ... I don't understand what you are talking about with the rollover minutes. ... >>Cash payments are available with GoPhone ... >>with a positive account balance. ... Rollover Balance: Pick Your ...
    (alt.cellular.cingular)
  • Re: Cheque clearing
    ... For example this is the latest part of my online banking ... >> that the available balance is 100.32 lower than the account balance ... > wrote some Mathematica code to generate all possible sums of the Ins ...
    (sci.math.num-analysis)
  • Re: Cheque clearing
    ... For example this is the latest part of my online banking ... >> that the available balance is 100.32 lower than the account balance ... > wrote some Mathematica code to generate all possible sums of the Ins ...
    (sci.math)
  • RE: [PHP] Math Weirdness
    ... from whence do you conjure $endingBal? ... $endingBal is conjured from the database tracking the account balance. ...
    (php.general)