After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 642176 - Chilean UF (Unidad de fomento) is missing decimals
Chilean UF (Unidad de fomento) is missing decimals
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: General
2.4.x
Other All
: Normal normal
: ---
Assigned To: Frank H. Ellenberger
Geert Janssens
Depends on:
Blocks:
 
 
Reported: 2011-02-12 15:43 UTC by Beto Zamora
Modified: 2018-06-29 22:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Beto Zamora 2011-02-12 15:43:49 UTC
After a while today I tried to use Gnucash new Chilean UF currency as it would solve one big problem that I have with this product (which I've been using for 3 years by the way).

The problem is that this currency was restricted to having no decimals.

I mean, as I mortgage I pay, let's say UF10.4347 and there is no way to input this number in Gnucash, because it truncates it to UF10.

Could this be fixed in a new release?

Best regards
Comment 1 Frank H. Ellenberger 2011-03-18 02:48:08 UTC
Hola,

can you tell me how many decimal digits are in use? On http://es.wikipedia.org/wiki/Unidad_de_Fomento I didn't see anything about it.

The best would be a link with the official definition like www.bcentral.cl .
Comment 2 Beto Zamora 2011-03-18 14:53:31 UTC
I searched through several pages of the central bank and didn't found a document regarding the minimun fractions the UF could have.

The only thing I can help with are facts and in my case, my mortgage and its associated insurances have four decimals, like UF 2.4351

The UF is not a phisycal currency (there are neither bills nor coins in UF currency). Everytime you have to pay something valued in UF, the conversion to chilean pesos has to be done. I think that if chilean pesos doesn't have fractions, in the UF case, the amount of decimals should be associated to this concept, I mean:

March 18th conversions:

1 UF = $21,560.19 <= but if you have pay 1UF, you round the fractions and you will pay $21,560.-
0.1UF = $2,156.02
0.01UF = $215.60
0.001UF = $21.56
0.0001UF = $2.16
0.00001UF=$0.22

To me, the UF should have 4 decimals because any more decimals than that would not have any meaning in Chilean pesos.
Looking into the future, a fifth decimal may be needed when the UF reachs $100.000, which is an inflation of 463%. from today... if the Central Bank has a goal of keeping yearly inflation around 3%, we will reach this 463% in about 58-59 years... by then I guess GnuCash will be far more powerful to overcome this possible problem.

Best Regards,
Comment 3 Frank H. Ellenberger 2011-03-19 04:24:38 UTC
But what will be the smallest peso coin in about 60 years - the coin must be cheaper than the materials used for it.

Committed r20430

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 4 Frank H. Ellenberger 2011-03-19 04:43:11 UTC
Sorry, I forgot 1 digit.

Committed r20431
Comment 5 Beto Zamora 2011-03-19 12:01:35 UTC
Thanks, I'm looking forward for this release.

Regards
Comment 6 John Ralls 2018-06-29 22:53:28 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=642176. Please update any external references or bookmarks.