On Thu, Aug 22, 2013 at 09:53:26PM -0700, Charles Merriam wrote:
>    It's a nice idea.  I have no four digit amounts; this gives no output.
>        ledger -w -f 2013.led register | grep "\.\d\d[1-9]" 
>    My guess is ledger is doing floats instead of paired fixed precision, so
>    some amount doesn't represent well in IEEE exactly, triggers the longer
>    field, and then rounds back to zero ten-thousandths of a penny anyway.

The ledger docs are pretty explicit in the fact that they use floats for 
amounts.  I just grepped through the code, and there are astoundingly few 
instances of the word float or double in the code, and they appear at first 
blush to all be related to size calculations rather than storing any amounts.

Jeff

-- 
"The man who does not read good books has no advantage over 
 the man who cannot read them."
 -- Mark Twain

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to