Searched refs:max_precision (Results 1 – 2 of 2) sorted by relevance
/system/update_engine/scripts/update_payload/ |
D | format_utils.py | 22 def NumToPercent(num, total, min_precision=1, max_precision=5): argument 52 precision = min(min_precision, max_precision) 54 while precision <= max_precision:
|
D | format_utils_unittest.py | 56 self.assertEqual(format_utils.NumToPercent(3, 900, max_precision=1), 58 self.assertEqual(format_utils.NumToPercent(3, 9000, max_precision=1),
|