Home
last modified time | relevance | path

Searched refs:exponent (Results 1 – 1 of 1) sorted by relevance

/lvgl-3.7.0/tests/unity/
Dunity.c374 int exponent = 0; in UnityPrintFloat() local
389 while (number < (UNITY_DOUBLE)max_scaled / 1e10f) { number *= 1e10f; exponent -= 10; } in UnityPrintFloat()
390 while (number * factor < (UNITY_DOUBLE)min_scaled) { factor *= 10.0f; exponent--; } in UnityPrintFloat()
398 … while (number > (UNITY_DOUBLE)min_scaled * 1e10f) { number /= 1e10f; exponent += 10; } in UnityPrintFloat()
399 while (number / divisor > (UNITY_DOUBLE)max_scaled) { divisor *= 10.0f; exponent++; } in UnityPrintFloat()
414 while (n_int < min_scaled) { n_int *= 10; factor *= 10.0f; exponent--; } in UnityPrintFloat()
433 exponent++; in UnityPrintFloat()
437 … decimals = ((exponent <= 0) && (exponent >= -(sig_digits + 3))) ? (-exponent) : (sig_digits - 1); in UnityPrintFloat()
438 exponent += decimals; in UnityPrintFloat()
461 if (exponent != 0) in UnityPrintFloat()
[all …]