pyfan.amto.numeric.round.ff_decimal_rounder_uncommon¶
-
pyfan.amto.numeric.round.
ff_decimal_rounder_uncommon
(ls_fl_num2format=[0.0012345, 0.12345, 12.345, 123.45, 1234.5, 123456.789], dc_round_decimal={0.1: 4, 1: 3, 100: 2, inf: 0}, verbose=False)[source]¶ Decimal rounding function with conditional formatting by number size
Given an array of numbers, format and return as a list of string, with different decimal formatting given different number sizes.
- Parameters
- ls_fl_num2formatlist of float
list of numbers of approximate to decimals
- dc_round_decimaldict
dict incremental formatter. For example, for the default, if below 0.1 keep 4 decimals, If below 1 keep 3, if below 100 keep 2, if otherwise above, then keep 0 decimals Loop over formatter.
- Returns
- list of str
Decimal formatted string outputs