Home
last modified time | relevance | path

Searched refs:parseFloat (Results 1 – 25 of 56) sorted by relevance

123

/external/v8/test/webkit/
DparseFloat-expected.txt24 Tests for the parseFloat function.
29 PASS parseFloat() is NaN
30 PASS parseFloat('') is NaN
31 PASS parseFloat(' ') is NaN
32 PASS parseFloat(' 0') is 0
33 PASS parseFloat('0 ') is 0
34 PASS parseFloat('x0') is NaN
35 PASS parseFloat('0x') is 0
36 PASS parseFloat(' 1') is 1
37 PASS parseFloat('1 ') is 1
[all …]
Dparse-nan.js28 debug(-parseFloat("NAN(ffffeeeeeff0f)"));
/external/v8/test/mjsunit/
Dparse-int-float.js51 assertEquals(0.1, parseFloat('0.1'));
52 assertEquals(0.1, parseFloat('0.1aaa'));
53 assertEquals(0, parseFloat('0aaa'));
54 assertEquals(0, parseFloat('0x12'));
55 assertEquals(77, parseFloat('077'));
99 assertTrue(isNaN(parseFloat(0/0)));
100 assertEquals(Infinity, parseFloat(1/0), "parseFloat Infinity");
101 assertEquals(-Infinity, parseFloat(-1/0), "parseFloat -Infinity");
123 assertSame(Number.parseFloat, parseFloat);
124 assertEquals(Number.parseFloat('0.1'), parseFloat('0.1'));
/external/jmonkeyengine/engine/src/core/com/jme3/util/xml/
DSAXUtil.java78 public static float parseFloat(String f, float def) throws SAXException{ in parseFloat() method in SAXUtil
83 return Float.parseFloat(f); in parseFloat()
90 public static float parseFloat(String f) throws SAXException{ in parseFloat() method in SAXUtil
95 return Float.parseFloat(f); in parseFloat()
127 float x = parseFloat(attribs.getValue("x")); in parseVector3()
128 float y = parseFloat(attribs.getValue("y")); in parseVector3()
129 float z = parseFloat(attribs.getValue("z")); in parseVector3()
134 float r = parseFloat(attribs.getValue("r")); in parseColor()
135 float g = parseFloat(attribs.getValue("g")); in parseColor()
136 float b = parseFloat(attribs.getValue("b")); in parseColor()
/external/jmonkeyengine/engine/src/ogre/com/jme3/scene/plugins/ogre/
DSceneLoader.java112 float x = parseFloat(attribs.getValue("x")); in parseQuat()
113 float y = parseFloat(attribs.getValue("y")); in parseQuat()
114 float z = parseFloat(attribs.getValue("z")); in parseQuat()
115 float w = parseFloat(attribs.getValue("w")); in parseQuat()
119 float x = parseFloat(attribs.getValue("qx")); in parseQuat()
120 float y = parseFloat(attribs.getValue("qy")); in parseQuat()
121 float z = parseFloat(attribs.getValue("qz")); in parseQuat()
122 float w = parseFloat(attribs.getValue("qw")); in parseQuat()
126 float angle = parseFloat(attribs.getValue("angle")); in parseQuat()
127 float axisX = parseFloat(attribs.getValue("axisX")); in parseQuat()
[all …]
DMeshLoader.java451 …buf.put(parseFloat(attribs.getValue("x"))).put(parseFloat(attribs.getValue("y"))).put(parseFloat(a… in pushAttrib()
461 …buf.put(parseFloat(attribs.getValue("x"))).put(parseFloat(attribs.getValue("y"))).put(parseFloat(a… in pushTangent()
463 buf.put(parseFloat(attribs.getValue("w"))); in pushTangent()
479 buf.put(parseFloat(attribs.getValue("u"))); in pushTexCoord()
481 buf.put(parseFloat(attribs.getValue("v"))); in pushTexCoord()
483 buf.put(parseFloat(attribs.getValue("w"))); in pushTexCoord()
485 buf.put(parseFloat(attribs.getValue("x"))); in pushTexCoord()
502 color.r = parseFloat(vals[0]); in pushColor()
503 color.g = parseFloat(vals[1]); in pushColor()
504 color.b = parseFloat(vals[2]); in pushColor()
[all …]
DMaterialLoader.java79 color.r = Float.parseFloat(split[0]); in readColor()
80 color.g = Float.parseFloat(split[1]); in readColor()
81 color.b = Float.parseFloat(split[2]); in readColor()
83 color.a = Float.parseFloat(split[3]); in readColor()
233 specular.r = Float.parseFloat(subsplit[0]); in readPassStatement()
234 specular.g = Float.parseFloat(subsplit[1]); in readPassStatement()
235 specular.b = Float.parseFloat(subsplit[2]); in readPassStatement()
236 float unknown = Float.parseFloat(subsplit[3]); in readPassStatement()
240 shinines = Float.parseFloat(subsplit[4]); in readPassStatement()
DSkeletonLoader.java88 angle = SAXUtil.parseFloat(attribs.getValue("angle")); in startElement()
97 time = SAXUtil.parseFloat(attribs.getValue("time")); in startElement()
127 float length = SAXUtil.parseFloat(attribs.getValue("length")); in startElement()
/external/v8/test/webkit/fast/js/kde/
DGlobalObject-expected.txt76 PASS isNaN(parseFloat()) is true
77 PASS isNaN(parseFloat('')) is true
78 PASS isNaN(parseFloat(' ')) is true
79 PASS isNaN(parseFloat('a')) is true
80 PASS parseFloat(1) is 1
81 PASS parseFloat(' 2.3') is 2.3
82 PASS parseFloat('3.1 x', 3) is 3.1
83 PASS parseFloat('3.1x', 3) is 3.1
84 PASS isFinite(parseFloat('Infinity')) is false
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/material/plugins/
DJ3MLoader.java168 return Float.parseFloat(split[0]); in readValue()
173 return new Vector2f(Float.parseFloat(split[0]), in readValue()
174 Float.parseFloat(split[1])); in readValue()
179 return new Vector3f(Float.parseFloat(split[0]), in readValue()
180 Float.parseFloat(split[1]), in readValue()
181 Float.parseFloat(split[2])); in readValue()
186 return new ColorRGBA(Float.parseFloat(split[0]), in readValue()
187 Float.parseFloat(split[1]), in readValue()
188 Float.parseFloat(split[2]), in readValue()
189 Float.parseFloat(split[3])); in readValue()
[all …]
/external/v8/test/mjsunit/harmony/
Dnumeric-literals.js84 assertEquals(0, parseFloat('0o77'));
85 assertEquals(0, parseFloat('0b11'));
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/
Dantlr.js181 o.webkit=parseFloat(m[1]);
204 o.opera=parseFloat(m[1]);
212 o.ie=parseFloat(m[1]);
219 o.gecko=parseFloat(m[1]);
/external/nist-sip/java/gov/nist/javax/sip/parser/
DTimeStampParser.java85 float ts = Float.parseFloat(s); in parse()
110 float ts = Float.parseFloat(s); in parse()
DAcceptLanguageParser.java111 float fl = Float.parseFloat(value.getTokenValue()); in parse()
DAcceptEncodingParser.java117 float qv = Float.parseFloat(value.getTokenValue()); in parse()
/external/v8/test/mjsunit/regress/
Dregress-636.js30 var value = parseFloat(5.5);
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/scene/plugins/
DOBJLoader.java289 v.set(Float.parseFloat(scan.next()), in readVector3()
290 Float.parseFloat(scan.next()), in readVector3()
291 Float.parseFloat(scan.next())); in readVector3()
301 v.setX( Float.parseFloat(split[0].trim()) ); in readVector2()
302 v.setY( Float.parseFloat(split[1].trim()) ); in readVector2()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
DDimenResourceLoader.java38 return Float.parseFloat(rawValue.substring(0, end)); in convertRawValue()
/external/chromium-trace/trace-viewer/tracing/third_party/css-element-queries/src/
DElementQueries.js28 return parseFloat(fontSize) || 16;
41 value = parseFloat(value);
/external/antlr/antlr-3.4/runtime/JavaScript/tests/functional/
Dt015calc.g37 | n=DECIMAL {result = parseFloat($n.text);}
/external/smali/smali/src/main/java/org/jf/smali/
DLiteralTools.java311 public static float parseFloat(String floatString) { in parseFloat() method in LiteralTools
325 return Float.parseFloat(floatString); in parseFloat()
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/
DHDRLoader.java274 exposure = Float.parseFloat(value); in load()
276 gamma = Float.parseFloat(value); in load()
DPFMLoader.java100 float scale = Float.parseFloat(scaleStr); in load()
/external/v8/test/webkit/fast/js/
DObject-getOwnPropertyNames-expected.txt57 PASS getSortedOwnPropertyNames(parseFloat) is ['arguments', 'caller', 'length', 'name']
76 … 'isFinite', 'isInteger', 'isNaN', 'isSafeInteger', 'length', 'name', 'parseFloat', 'parseInt', 'p…
90 PASS globalPropertyNames.indexOf('parseFloat') != -1 is true
/external/chromium-trace/trace-viewer/tracing/third_party/tvcm/third_party/rjsmin/bench/
Djquery-1.7.1.js506 return !isNaN( parseFloat(obj) ) && isFinite( obj );
1945 jQuery.isNumeric( data ) ? parseFloat( data ) :
6529 value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
6630 value = parseFloat( value );
6648 ( parseFloat( RegExp.$1 ) / 100 ) + "" :
6779 val -= parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
6782 val += parseFloat( jQuery.css( elem, extra + which[ i ] ) ) || 0;
6784 val -= parseFloat( jQuery.css( elem, "border" + which[ i ] + "Width" ) ) || 0;
6798 val = parseFloat( val ) || 0;
6803 val += parseFloat( jQuery.css( elem, "padding" + which[ i ] ) ) || 0;
[all …]

123