Searched refs:min_precision (Results 1 – 2 of 2) sorted by relevance
/system/update_engine/scripts/update_payload/ |
D | format_utils.py | 20 def NumToPercent(num, total, min_precision=1, max_precision=5): argument 50 precision = min(min_precision, max_precision)
|
D | format_utils_unittest.py | 45 self.assertEqual(format_utils.NumToPercent(3, 9, min_precision=3), 47 self.assertEqual(format_utils.NumToPercent(3, 9, min_precision=0),
|