Don't use GNC-DENOM-SIGFIGS when converting prices

to gnc-numeric values.
This commit is contained in:
Mike Alexander 2019-01-28 01:33:04 -05:00
parent 5bd7875437
commit 62a4e73f7f

View File

@ -403,13 +403,12 @@
((price) "unknown")
(else #f)))
;; FIXME: SIGFIGS is not what we want here...
(if price
(set! price
(double-to-gnc-numeric price
GNC-DENOM-AUTO
(logior (GNC-DENOM-SIGFIGS 9)
GNC-RND-ROUND))))
GNC-DENOM-AUTO
(logior GNC-DENOM-REDUCE
GNC-RND-NEVER))))
(if gnc-time
(set! gnc-time (timestr->time64 gnc-time time-zone))