refactor(display): one rounding for presentation
Move format_amount's rounding half (half away from zero, never a negative zero) into ledger-import::format::round_display, through the kernel's round_places. format_amount, amount_parts, the PDF percent column, xlsx's exact_f64 and ledger-package's text padding all call it, so a display change never changes a booked figure. Co-Authored-By: Muse Wonder 1.0
This commit is contained in:
1 parent
4da1c5b30f
commit
a414462be7
6 files changed
+81
-5
No files matched your search
@@ -19,6 +19,7 @@ pub mod chart_csv;
|
||||
/// The one reader, now the `ledger-reader` crate (D-61), kept at its old path.
|
||||
pub use ledger_reader as extract;
|
||||
pub mod fonts;
|
||||
pub mod format;
|
||||
pub mod iif;
|
||||
pub mod invoice_pdf;
|
||||
pub mod labels;
|
||||
@@ -32,6 +33,7 @@ pub use asset_register::{asset_register_pdf, asset_register_xlsx};
|
||||
pub use bank_csv::{BankCsvError, BankTransaction, DateOrder, parse_bank_csv, parse_bank_csv_with};
|
||||
pub use chart_csv::{ChartRow, parse_chart_csv};
|
||||
pub use extract::{ExtractError, page_count, page_png, pdf_lines, pdf_text, text_of, xlsx_text};
|
||||
pub use format::round_display;
|
||||
pub use iif::{
|
||||
Iif, IifAccount, IifChange, IifClass, IifError, IifField, LeftOut, MEMO_MAX, NAME_MAX,
|
||||
NUMBER_MAX, QbAccountType, iif_accounts, iif_classes, journal_to_iif,
|
||||
|
||||
Reference in new issue
Block a user