Prices in Price Database dialog

Robert Fewell 14ubobit at gmail.com
Mon Apr 3 11:21:49 EDT 2017


Hi,

I gave been seeing these error messages in my trace file...

* 15:53:27  WARN <qof> [gnc_numeric_to_decimal()] Rounding required when
'never round' specified.
* 15:53:27  WARN <qof> [gnc_numeric_to_decimal()] Rounding required when
'never round' specified.
* 15:53:27  WARN <qof> [gnc_numeric_to_decimal()] Rounding required when
'never round' specified.

and was not sure why they were there, a bt revealed this ...

#0  0x00007ffff756cbd8 in g_logv () from /usr/lib/libglib-2.0.so.0
#1  0x00007ffff756ce0f in g_log () from /usr/lib/libglib-2.0.so.0
#2  0x00007ffff5ff0f77 in gnc_numeric_to_decimal (a=a at entry=0x7fffffffd7d0,
max_decimal_places=max_decimal_places at entry=0x0)
    at
/var/tmp/portage/app-office/gnucash-2.6.99/work/gnucash-2.6.99/src/libqof/qof/gnc-numeric.cpp:1054
#3  0x00007ffff69bac9c in PrintAmountInternal (info=<synthetic pointer>,
val=..., buf=0x7ffff6bd4400 <buf> "-1,240.04")
    at
/var/tmp/portage/app-office/gnucash-2.6.99/work/gnucash-2.6.99/src/app-utils/gnc-ui-util.c:1357
#4  xaccSPrintAmount (bufp=bufp at entry=0x7ffff6bd4400 <buf> "-1,240.04",
val=..., info=...)
    at
/var/tmp/portage/app-office/gnucash-2.6.99/work/gnucash-2.6.99/src/app-utils/gnc-ui-util.c:1652
#5  0x00007ffff69bb5bf in xaccPrintAmount (val=..., info=...)
    at
/var/tmp/portage/app-office/gnucash-2.6.99/work/gnucash-2.6.99/src/app-utils/gnc-ui-util.c:1693
#6  0x00007ffff6c713d3 in gnc_tree_model_price_get_value
(tree_model=0x7c18a0, iter=<optimized out>, column=<optimized out>,
    value=0x7fffffffd9e0) at
/var/tmp/portage/app-office/gnucash-2.6.99/work/gnucash-2.6.99/src/gnome-utils/gnc-tree-model-price.c:784

I can see that the print_info is set in model_price to be 6 decimal places
but on the attached screen shot you can see the warnings are against the
ones that are fractions in the list.
I would of expected all entries to be displayed to 6 decimal places.

Is this correct and should just be ignored or should some thing be changed ?

Bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prices.png
Type: image/png
Size: 271686 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20170403/b62435ae/attachment-0001.png>


More information about the gnucash-devel mailing list