Unexpected result converting to canonical type
オープン
- 主要言語
- Java
- スター
- 26
- フォーク
- 18
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Decimal m = ucum.convert(new Decimal("1",15), "[mi_i]","m");
System.out.println("one mile = " + m + "m expect 1609.344");
Internally convert() first correctly converts 1[mi_i] to canonical unit [m] as 1609.344 but the
conversion from canonical [m] to destination type [m] converts 1609.344 to 1609 because
the identity conversion m->m uses Decimal("1",precision=1)
I would expect the unity conversion to be a noop.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。