On Tue, Apr 25, 2000 at 11:56:48AM -0500, Rob Browning wrote:
> Richard Wackerbarth <[EMAIL PROTECTED]> writes:
>
> > I think it is best to store exact numbers (for example {3 to 5} as a ratio or
> > {99 to 165} for the actual number of shares)
>
> Well, if we were doing this in a scheme with the full numeric tower,
> then we'd be set since 1/3 would be just fine, but it looks like
> rscheme supports 1/3, but guile converts it to a real...
I would recommend having two separate ints for the numerator and
denominator (new_shares and old_shares) just to avoid such automagic
conversions. Also using the least common denominator instead of actual
numbers of shares in the conversion table may save a couple CPU cycles when
doing the conversions. Additionally, this keeps the representation such
that it is easy to understand (3:5 is more obvious than 99:165).
Mike
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]
- Re: What's the proper accounting... Rob Walker
- Re: What's the proper accounting way to handle a ... linas
- Re: What's the proper accounting way to handl... Christopher Browne
- Re: What's the proper accounting way to handl... Rob Browning
- Re: What's the proper accounting way to h... Bill Gribble
- Re: What's the proper accounting way ... Rob Browning
- Re: What's the proper accounting way to handle a ... Michael Gerdts
- Re: What's the proper accounting way to handl... Richard Wackerbarth
- Re: What's the proper accounting way to h... Rob Browning
- Re: What's the proper accounting way ... Michael Gerdts
- Re: What's the proper accounting way ... Bryan Larsen
- Re: What's the proper accounting... Michael Gerdts
- Re: What's the proper accoun... Matt Sisk
- Re: What's the proper accoun... Christopher Browne
- Re: What's the proper accoun... Richard Wackerbarth
- Re: What's the proper accoun... Christopher Browne
- Re: What's the proper accoun... Richard Wackerbarth
- Re: What's the proper accounting way to handl... Rob Browning
- Re: What's the proper accounting way to handle a stock... Richard Wackerbarth
- Re: What's the proper accounting way to handle a ... Dakshi Agrawal
