Searched refs:decimalPlaces (Results 1 – 8 of 8) sorted by relevance
/external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/ |
D | StringUtil.java | 104 public String padNum(double num, int wholeLen, int decimalPlaces) { in padNum() argument 118 if (dpLoc + 1 + decimalPlaces > numStr.substring(dpLoc).length()) { in padNum() 121 return numStr.substring(0, dpLoc + 1 + decimalPlaces); in padNum() 131 public String padNumZero(double num, int wholeLen, int decimalPlaces) { in padNumZero() argument 145 if (dpLoc + 1 + decimalPlaces > numStr.substring(dpLoc).length()) { in padNumZero() 148 return numStr.substring(0, dpLoc + 1 + decimalPlaces); in padNumZero() 158 public String padNum(float num, int wholeLen, int decimalPlaces) { in padNum() argument 172 if (dpLoc + 1 + decimalPlaces > numStr.substring(dpLoc).length()) { in padNum() 175 return numStr.substring(0, dpLoc + 1 + decimalPlaces); in padNum() 185 public String padNumZero(float num, int wholeLen, int decimalPlaces) { in padNumZero() argument [all …]
|
/external/webkit/Source/WebCore/html/parser/ |
D | HTMLParserIdioms.cpp | 100 …DoubleForNumberTypeWithDecimalPlaces(const String& string, double *result, unsigned *decimalPlaces) in parseToDoubleForNumberTypeWithDecimalPlaces() argument 102 if (decimalPlaces) in parseToDoubleForNumberTypeWithDecimalPlaces() 103 *decimalPlaces = 0; in parseToDoubleForNumberTypeWithDecimalPlaces() 108 if (!decimalPlaces) in parseToDoubleForNumberTypeWithDecimalPlaces() 163 *decimalPlaces = 0; in parseToDoubleForNumberTypeWithDecimalPlaces() 165 *decimalPlaces = 19999; in parseToDoubleForNumberTypeWithDecimalPlaces() 167 *decimalPlaces = static_cast<unsigned>(intDecimalPlaces); in parseToDoubleForNumberTypeWithDecimalPlaces()
|
/external/webkit/Source/JavaScriptCore/wtf/ |
D | DecimalNumber.h | 69 DecimalNumber(double d, RoundingDecimalPlacesType, unsigned decimalPlaces) in DecimalNumber() argument 72 dtoaRoundDP(m_significand, d, decimalPlaces, m_sign, m_exponent, m_precision); in DecimalNumber() 74 unsigned significantFigures = 1 + m_exponent + decimalPlaces; in DecimalNumber()
|
/external/webkit/Source/WebCore/html/ |
D | NumberInputType.cpp | 152 double NumberInputType::stepBaseWithDecimalPlaces(unsigned* decimalPlaces) const in stepBaseWithDecimalPlaces() 154 …eToDoubleWithDecimalPlaces(element()->fastGetAttribute(minAttr), defaultStepBase(), decimalPlaces); in stepBaseWithDecimalPlaces() 188 …rseToDoubleWithDecimalPlaces(const String& src, double defaultValue, unsigned *decimalPlaces) const in parseToDoubleWithDecimalPlaces() 191 if (!parseToDoubleForNumberTypeWithDecimalPlaces(src, &numberValue, decimalPlaces)) in parseToDoubleWithDecimalPlaces()
|
D | InputType.cpp | 263 double InputType::stepBaseWithDecimalPlaces(unsigned* decimalPlaces) const in stepBaseWithDecimalPlaces() 265 if (decimalPlaces) in stepBaseWithDecimalPlaces() 266 *decimalPlaces = 0; in stepBaseWithDecimalPlaces() 377 …rseToDoubleWithDecimalPlaces(const String& src, double defaultValue, unsigned *decimalPlaces) const in parseToDoubleWithDecimalPlaces() 379 if (decimalPlaces) in parseToDoubleWithDecimalPlaces() 380 *decimalPlaces = 0; in parseToDoubleWithDecimalPlaces()
|
D | HTMLInputElement.cpp | 287 bool HTMLInputElement::getAllowedValueStepWithDecimalPlaces(double* step, unsigned* decimalPlaces) … in getAllowedValueStepWithDecimalPlaces() 297 if (decimalPlaces) in getAllowedValueStepWithDecimalPlaces() 298 *decimalPlaces = 0; in getAllowedValueStepWithDecimalPlaces() 304 if (!decimalPlaces) { in getAllowedValueStepWithDecimalPlaces() 310 …if (!parseToDoubleForNumberTypeWithDecimalPlaces(stepString, &parsed, decimalPlaces) || parsed <= … in getAllowedValueStepWithDecimalPlaces() 312 *decimalPlaces = 0; in getAllowedValueStepWithDecimalPlaces()
|
D | InputType.h | 230 … parseToDoubleWithDecimalPlaces(const String&, double defaultValue, unsigned* decimalPlaces) const;
|
/external/webkit/Source/JavaScriptCore/runtime/ |
D | NumberPrototype.cpp | 139 int decimalPlaces; in numberProtoFuncToFixed() local 141 if (!getIntegerArgumentInRange(exec, 0, 20, decimalPlaces, isUndefined)) in numberProtoFuncToFixed() 156 …unsigned length = DecimalNumber(x, RoundingDecimalPlaces, decimalPlaces).toStringDecimal(buffer, W… in numberProtoFuncToFixed()
|