iNZightVIT / iNZightPlots

Plot functions for use by iNZight.
2 stars 1 forks source link

Rounding and formatting issue #297

Closed tmelliott closed 1 year ago

tmelliott commented 1 year ago

E.g., rounding of 0.353 to 2dp -> 0.35 which then gets formatted (rounded) to 1dp is 0.3 (R's round-down for <= 0.5) - but rounding 0.353 should round up to 0.4.

Also, it appears that formatting is not respecting the rounding argument (at least in 2-way tables of counts).