Lines Matching refs:unum_formatDouble
234 /*Testing unum_format() and unum_formatdouble()*/
269 log_verbose("\nTesting unum_formatDouble()\n");
273 resultlengthneeded=unum_formatDouble(cur_def, d, NULL, resultlength, &pos2, &status);
281 unum_formatDouble(cur_def, d, result, resultlength, &pos2, &status);
286 log_err("Error in formatting using unum_formatDouble(.....): %s\n", myErrorName(status));
289 log_verbose("Pass: Number Formatting using unum_formatDouble() Successful\n");
291 log_err("FAIL: Error in number formatting using unum_formatDouble()\n");
295 log_err("Fail: Error in complete number Formatting using unum_formatDouble()\nGot: b=%d end=%d\nExpected: b=9 end=11",
336 log_err("Error in formatting using unum_formatDouble(.....): %s\n", myErrorName(status));
339 log_verbose("Pass: Number Formatting using unum_formatDouble() Successful\n");
341 log_err("FAIL: Error in number formatting using unum_formatDouble()\n");
346 log_err("Fail: Error in complete number Formatting using unum_formatDouble()\nGot: b=%d end=%d\nExpected: b=1 end=6\n",
1181 resultlengthneeded=unum_formatDouble(fmt, d, NULL, resultlength, NULL, &status);
1187 unum_formatDouble(fmt, d, result, resultlength, NULL, &status);
1191 log_err("Error in formatting using unum_formatDouble(.....): %s\n", myErrorName(status));
1195 log_verbose("Pass: Number Formatting using unum_formatDouble() Successful\n");
1197 log_err("FAIL: Error in number formatting using unum_formatDouble()\n");
1225 (void)unum_formatDouble(fmt, d, result, sizeof(result) / sizeof(result[0]), NULL, &status);
1228 log_err("Error in formatting using unum_formatDouble(.....): %s\n", myErrorName(status));
1234 log_err("FAIL: Error in unum_formatDouble result %s instead of %s\n", u_austrcpy(temp1, result), u_austrcpy(temp2, expected) );
1305 resultlengthneeded=unum_formatDouble(pattern, d, NULL, resultlength, &pos1, &status);
1311 unum_formatDouble(pattern, d, result, resultlength, NULL, &status);
1315 log_err("Error in formatting using unum_formatDouble(.....) with padding : %s\n", myErrorName(status));
1320 log_verbose("Pass: Number Formatting using unum_formatDouble() padding Successful\n");
1322 log_data_err("FAIL: Error in number formatting using unum_formatDouble() with padding\n");
1324 log_verbose("Pass: Complete number formatting using unum_formatDouble() successful\n");
1326 log_err("Fail: Error in complete number Formatting using unum_formatDouble()\nGot: b=%d end=%d\nExpected: b=13 end=15\n",
1440 unum_formatDouble(fmt, doubleBig, result, 512, NULL, &status);
1496 unum_formatDouble(fmt, vals[i], buffer, BUFSIZE, NULL, &status);
1586 unum_formatDouble(fmt, vals[i], buffer, BUFSIZE, NULL, &status);
1753 len = unum_formatDouble(formats[1], nanvalue, fmtbuf, FORMAT_BUF_CAPACITY, NULL, &status);
1755 log_err_status(status, "unum_formatDouble NAN failed with %s\n", u_errorName(status));
1759 log_err("unum_formatDouble NAN produced wrong answer for en_US\n");
1848 used = unum_formatDouble(nf, -1234.5, ubuffer, 64, NULL, &status);
1856 used = unum_formatDouble(nf, 1234.5, ubuffer, 64, NULL, &status);
1872 unum_formatDouble(nf, myNumber, myString, 20, NULL, &status);
1995 unum_formatDouble(pform, 3600, buffer, 256, NULL, &status);
1998 unum_formatDouble(pform_cloned, 3600, buffer_cloned, 256, NULL, &status);
2133 len2 = unum_formatDouble(fmt, 1997.0, result2, 1024, NULL, &status);
2136 log_err("unum_formatDouble Expected %s but got %s status %s\n", austrdup(expect), austrdup(result2), u_errorName(status));
2165 len2 = unum_formatDouble(fmt, 97.0, result2, 1024, NULL, &status);
2168 log_err("unum_formatDouble Expected %s but got %s status %s\n", austrdup(expect), austrdup(result2), u_errorName(status));