Skip to content

Instantly share code, notes, and snippets.

@shlevy
Created January 1, 2018 20:35
Show Gist options
  • Select an option

  • Save shlevy/e28337daaad17b6f514f929048752f61 to your computer and use it in GitHub Desktop.

Select an option

Save shlevy/e28337daaad17b6f514f929048752f61 to your computer and use it in GitHub Desktop.
Rounding
;; -*- mode: Ledger; -*-
2018/01/01 Target
Expenses:Food ($2.95 * 19/20)
Expenses:Clothing ($0.40 * 19/20)
; With the following line commented, normal balance report rounds to
; cents and --unround shows 1/4 of a cent left over. With it uncommented,
; balance report rounds to 100ths of a cent
;Income:Red Card Rounding (-$0.0025)
Liabilities:Red Card -$3.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment