Skip to content

Commit

Permalink
[eguile-utilities] fmtnumeric displays decimal instead of fraction
Browse files Browse the repository at this point in the history
previously fmtnumeric would convert gnc_numeric to double. simplifying
the code had omitted this conversion, and exact fractions were
rendered. ensure decimal is rendered.
  • Loading branch information
christopherlam committed Jun 23, 2020
1 parent 677090c commit 47e2fb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnucash/report/report-system/eguile-utilities.scm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
(number->string (if (integer? n) (inexact->exact n) n)))

;; Format gnc-numeric n with as many decimal places as required
(define-public fmtnumeric fmtnumber)
(define-public fmtnumeric
(compose fmtnumber exact->inexact))

(define-public (gnc-monetary-neg? monetary)
; return true if the monetary value is negative
Expand Down

0 comments on commit 47e2fb9

Please sign in to comment.