Lines Matching refs:myFloat
27 float myFloat = -1234.0; in TestString() local
100 u_sprintf(uStringBuf, "Float f: %f", myFloat); in TestString()
103 if (myFloat != *newDoubleValuePtr) { in TestString()
104 log_err("%%f Got: %f, Expected: %f\n", *newDoubleValuePtr, myFloat); in TestString()
107 u_sprintf(uStringBuf, "Lowercase float e: %e", myFloat); in TestString()
110 if (myFloat != *newDoubleValuePtr) { in TestString()
111 log_err("%%e Got: %e, Expected: %e\n", *newDoubleValuePtr, myFloat); in TestString()
114 u_sprintf(uStringBuf, "Uppercase float E: %E", myFloat); in TestString()
117 if (myFloat != *newDoubleValuePtr) { in TestString()
118 log_err("%%E Got: %E, Expected: %E\n", *newDoubleValuePtr, myFloat); in TestString()
121 u_sprintf(uStringBuf, "Lowercase float g: %g", myFloat); in TestString()
124 if (myFloat != *newDoubleValuePtr) { in TestString()
125 log_err("%%g Got: %g, Expected: %g\n", *newDoubleValuePtr, myFloat); in TestString()
128 u_sprintf(uStringBuf, "Uppercase float G: %G", myFloat); in TestString()
131 if (myFloat != *newDoubleValuePtr) { in TestString()
132 log_err("%%G Got: %G, Expected: %G\n", *newDoubleValuePtr, myFloat); in TestString()
182 u_sprintf(uStringBuf, "Percent %%P (non-ANSI): %P", myFloat); in TestString()
185 if (myFloat != *newDoubleValuePtr) { in TestString()
186 log_err("%%P Got: %P, Expected: %P\n", *newDoubleValuePtr, myFloat); in TestString()
189 u_sprintf(uStringBuf, "Spell Out %%V (non-ANSI): %V", myFloat); in TestString()
192 if (myFloat != *newDoubleValuePtr) { in TestString()
193 log_err("%%V Got: %f, Expected: %f\n", *newDoubleValuePtr, myFloat); in TestString()
199 log_err("%%V Got: %f, Expected: %f\n", *newDoubleValuePtr, myFloat); in TestString()