Searched refs:precision (Results 1 – 4 of 4) sorted by relevance
/system/update_engine/scripts/update_payload/ |
D | format_utils.py | 50 precision = min(min_precision, max_precision) 51 factor = 10 ** precision 52 while precision <= max_precision: 57 precision += 1 62 precision -= 1 64 return '%d%s%%' % (whole, '.%0*d' % (precision, frac) if frac else '') 67 def BytesToHumanReadable(size, precision=1, decimal=False): argument 106 frac = (size % magnitude) * (10 ** precision) / magnitude
|
D | format_utils_unittest.py | 80 self.assertEqual(format_utils.BytesToHumanReadable(5000, precision=3), 82 self.assertEqual(format_utils.BytesToHumanReadable(500000, precision=0), 84 self.assertEqual(format_utils.BytesToHumanReadable(5000000, precision=5),
|
/system/chre/build/arch/ |
D | cortexm.mk | 33 TARGET_CFLAGS += -fsingle-precision-constant
|
/system/bt/doc/ |
D | style_guide.md | 47 from the pointer as a `uintptr_t` to avoid a loss of precision (or to make the
|