Home
last modified time | relevance | path

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

/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-conversion.c906 int32_t num_of_digits, /**< number of digits */ in ecma_double_to_ascii() argument
915 buffer_p[num_of_digits - 1 - char_cnt++] = (lit_utf8_byte_t) ((int) mod_res + '0'); in ecma_double_to_ascii()
919 while (char_cnt < num_of_digits) in ecma_double_to_ascii()
923 …buffer_p[num_of_digits - 1 - char_cnt++] = (lit_utf8_byte_t) ((int) (residual / (divider / 10.0)) … in ecma_double_to_ascii()
947 int32_t num_of_digits = ecma_number_of_digits (integer_part); in ecma_double_to_binary_floating_point() local
954 else if (num_of_digits <= 16) /* Ensure that integer_part is not rounded */ in ecma_double_to_binary_floating_point()
958 …buffer_p[num_of_digits - 1 - char_cnt++] = (lit_utf8_byte_t) ((int) fmod (integer_part, 10.0) + '0… in ecma_double_to_binary_floating_point()
962 else if (num_of_digits <= 21) in ecma_double_to_binary_floating_point()
964 ecma_double_to_ascii (integer_part, buffer_p, num_of_digits, &char_cnt); in ecma_double_to_binary_floating_point()
972 *exp_p = num_of_digits; in ecma_double_to_binary_floating_point()