Calculation precision and currency formatting in generated PDF documents
Generated order and invoice PDFs and custom Liquid document templates combine accurate intermediate calculations with clean currency presentation.
- Custom Liquid templates keep exact decimal values through calculation chains like division, rounding only at the final display step.
- Final totals, balance labels, and payment-history rows format to two decimal places in covered documents while underlying calculations retain exact precision.
- Order shipping displays and invoice quantity displays trim redundant trailing zeros while preserving meaningful quantity precision.