----- Original Message ----- 
From: "ryanm" <[EMAIL PROTECTED]>
To: <flexcoders@yahoogroups.com>
Sent: Thursday, August 17, 2006 7:54 AM
Subject: Re: [flexcoders] Re: decimal numbers in financial applications


>> At that point you are looking at full table scan to update single
>> record - and it might be much worse problem then loosing one cent on
>> rounding.
>>
>    On the other hand, the application I was working on dealt with a 
> service
> model that involved tenths or hundredths of a penny per transaction, and
> added up hundreds of thousands of transactions on a typical "page" of 
> data,
> so losing a penny to a rounding error would've been a very serious 
> problem.
> It really depends on the nature of the app and just how precise you need 
> the
> numbers to be.
>
>    These situations are where a properly abstracted business logic layer
> comes in handy. When fully seperated from the display layer, all the
> calculations take place in a single language/platform and all precisions
> issues can be dealt with at one time, hopefully in a single place in the
> code. Depending on the nature and purpose of the app that kind of 
> precision
> may not be required, but it still makes it a lot easier to fix precision
> issues when they come up if your logic is all handled in one place.
>
>    I guess what I'm saying is it depends on the app. ;-)

You are absolutely right. I've seen this problem (years ago) on an 
application where the UI was client server and
the reporting was done separtely on the server (different software to the 
client). It can be rather problematic
seeing one thing on screen and something different in a printed invoice or 
report (no matter how small the difference).

For some reason the customer/users start losing faith in the software..

Paul

> ryanm
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
> 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to