pyfan.amto.numeric.round¶
The pyfan.amto.numeric.round
provides decimal rounding for float arrays.
Given an array of numbers, provide conditional decimal formatting rounding via fstring. This is used by table function to generate table specific rounding rules.
For example, a table with birthweight in grams, and ratios, might have 2 decimals for numbers less than 1, but no decimals for numbers larger than 1000 (which are the grams).
import pyfan.amto.numeric.round as pyfan_amto_round
Created on Dec 14, 2020
Includes method ff_decimal_rounder_uncommon()
and ff_decimal_rounder()
.
Functions
|
Decimal rounding function with common decimal formatting |
Decimal rounding function with conditional formatting by number size |