Issue #166: Inconsistent rendering of decimal numbers (blais/beancount)

44 views
Skip to first unread message

Limbo Peng

unread,
May 3, 2017, 12:05:17 PM5/3/17
to bean...@googlegroups.com
New issue 166: Inconsistent rendering of decimal numbers
https://bitbucket.org/blais/beancount/issues/166/inconsistent-rendering-of-decimal-numbers

Limbo Peng:

## Description

The output of `bean-report` renders decimal numbers inconsistently when a beancount file is included in another.

## Environment

* Python 3.5.1
* beancount 2.0rc1

## Normal Rendering

```
; test1.beancount
option "operating_currency" "CNY"

2017-01-01 open Equity:OpeningBalances
2017-01-01 open Assets:Cash

2017-05-02 pad Assets:Cash Equity:OpeningBalances
2017-05-03 balance Assets:Cash 100.01 CNY
```

```sh
$ bean-report test.beancount bal
Assets:Cash 100.01 CNY
Equity:OpeningBalances -100.01 CNY
Expenses
Income
Liabilities
```

## Weird Rendering in Included File

```
; test2a.beancount
option "operating_currency" "CNY"
include "test2b.beancount"
```

```
; test2b.beancount
2017-01-01 open Equity:OpeningBalances
2017-01-01 open Assets:Cash

2017-05-02 pad Assets:Cash Equity:OpeningBalances
2017-05-03 balance Assets:Cash 100.01 CNY
```

```sh
$ bean-report test.beancount bal
Assets:Cash 100.01000000 CNY
Equity:OpeningBalances -100.01000000 CNY
Expenses
Income
Liabilities
```


Gregory Margo

unread,
Jun 18, 2018, 11:43:57 AM6/18/18
to Beancount
I just ran into this bug myself.
Has there been any progress?
Is this something a relative newcomer to the beancount codebase could tackle?



Reply all
Reply to author
Forward
0 new messages