Searched defs:format_code (Results 1 - 5 of 5) sorted by relevance

/external/python/cpython2/Python/
H A Dpystrtod.c738 char format_code,
749 /* Validate format_code, and map upper and lower case */
750 switch (format_code) {
757 format_code = 'e';
761 format_code = 'f';
765 format_code = 'g';
780 format_code = 'g';
830 if (format_code == 'f' && fabs(val) >= 1.0) {
855 format_code = 'Z';
859 format_code);
737 PyOS_double_to_string(double val, char format_code, int precision, int flags, int *type) argument
937 format_float_short(double d, char format_code, int mode, Py_ssize_t precision, int always_add_sign, int add_dot_0_if_integer, int use_alt_formatting, char **float_strings, int *type) argument
1185 PyOS_double_to_string(double val, char format_code, int precision, int flags, int *type) argument
[all...]
/external/python/cpython3/Python/
H A Dpystrtod.c792 char format_code,
803 /* Validate format_code, and map upper and lower case */
804 switch (format_code) {
811 format_code = 'e';
815 format_code = 'f';
819 format_code = 'g';
834 format_code = 'g';
884 if (format_code == 'f' && fabs(val) >= 1.0) {
909 format_code = 'Z';
913 format_code);
791 PyOS_double_to_string(double val, char format_code, int precision, int flags, int *type) argument
991 format_float_short(double d, char format_code, int mode, int precision, int always_add_sign, int add_dot_0_if_integer, int use_alt_formatting, const char * const *float_strings, int *type) argument
1240 PyOS_double_to_string(double val, char format_code, int precision, int flags, int *type) argument
[all...]
/external/python/cpython2/Objects/
H A Dcomplexobject.c369 complex_format(PyComplexObject *v, int precision, char format_code) argument
388 im = PyOS_double_to_string(v->cval.imag, format_code,
396 pre = PyOS_double_to_string(v->cval.real, format_code,
404 im = PyOS_double_to_string(v->cval.imag, format_code,
H A Dfloatobject.c375 float_str_or_repr(PyFloatObject *v, int precision, char format_code) argument
379 format_code, precision,
/external/python/cpython3/Objects/
H A Dcomplexobject.c335 char format_code = 'r'; local
353 im = PyOS_double_to_string(v->cval.imag, format_code,
362 pre = PyOS_double_to_string(v->cval.real, format_code,
370 im = PyOS_double_to_string(v->cval.imag, format_code,

Completed in 200 milliseconds