Methodology

Rounding and precision

We keep calculation precision separate from display formatting so a neat output does not quietly change the risk model.

Internal precision

Calculations use decimal arithmetic with 32 significant digits. Money, percentages, and share counts are formatted only after the calculation finishes.

Display

Most currencies show two decimals; JPY shows zero. Percentage outputs show two decimals. Fractional shares show up to four decimals in the current release.

Conservative share counts

Whole and fractional positions are truncated downward. They are never rounded up through the selected risk or capital limit.