Home
last modified time | relevance | path

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

12345

/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/chromium-trace/catapult/third_party/flot/
Djquery.colorhelpers.js106 … return m(parseInt(res[1], 10), parseInt(res[2], 10), parseInt(res[3], 10), parseFloat(res[4]));
110 return m(parseFloat(res[1])*2.55, parseFloat(res[2])*2.55, parseFloat(res[3])*2.55);
114 …return m(parseFloat(res[1])*2.55, parseFloat(res[2])*2.55, parseFloat(res[3])*2.55, parseFloat(res…
Djquery.colorhelpers.min.js1parseFloat(res[4]));if(res=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([…
/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/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/loader/
DObjLoader.java130 verts.add(Float.parseFloat(tokens[1])); in loadModelData()
131 verts.add(Float.parseFloat(tokens[2])); in loadModelData()
132 verts.add(Float.parseFloat(tokens[3])); in loadModelData()
134 norms.add(Float.parseFloat(tokens[1])); in loadModelData()
135 norms.add(Float.parseFloat(tokens[2])); in loadModelData()
136 norms.add(Float.parseFloat(tokens[3])); in loadModelData()
138 uvs.add(Float.parseFloat(tokens[1])); in loadModelData()
139 uvs.add((flipV ? 1 - Float.parseFloat(tokens[2]) : Float.parseFloat(tokens[2]))); in loadModelData()
387 float r = Float.parseFloat(tokens[1]); in load()
388 float g = Float.parseFloat(tokens[2]); in load()
[all …]
/external/chromium-trace/catapult/third_party/coverage/coverage/htmlfiles/
Djquery.isonscreen.js12 for(var i in box){box[i] = parseFloat(box[i])};
13 for(var i in container){container[i] = parseFloat(container[i])};
35 for(var i in container){container[i] = parseFloat(container[i])};
/external/v8/test/intl/number-format/
Dformat-currency.js10 assertEquals("$54,306.40", nf_USD.format(parseFloat(54306.4047970)));
15 assertEquals("JPY54,306", nf_JPY.format(parseFloat(54306.4047970)));
/external/v8/test/mjsunit/es6/
Dnumeric-literals.js80 assertEquals(0, parseFloat('0o77'));
81 assertEquals(0, parseFloat('0b11'));
/external/autotest/client/deps/webgl_mpd/src/resources/
DJ3DI.js406 vertex.push(parseFloat(array[1]));
407 vertex.push(parseFloat(array[2]));
408 vertex.push(parseFloat(array[3]));
412 texture.push(parseFloat(array[1]));
413 texture.push(parseFloat(array[2]));
417 normal.push(parseFloat(array[1]));
418 normal.push(parseFloat(array[2]));
419 normal.push(parseFloat(array[3]));
/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()
/external/libgdx/gdx/src/com/badlogic/gdx/maps/tiled/
DBaseTmxMapLoader.java160 float opacity = Float.parseFloat(element.getAttribute("opacity", "1.0")); in loadBasicLayerInfo()
188 vertices[i * 2] = Float.parseFloat(point[0]) * scaleX; in loadObject()
189 vertices[i * 2 + 1] = Float.parseFloat(point[1]) * scaleY * (flipY ? -1 : 1); in loadObject()
199 vertices[i * 2] = Float.parseFloat(point[0]) * scaleX; in loadObject()
200 vertices[i * 2 + 1] = Float.parseFloat(point[1]) * scaleY * (flipY ? -1 : 1); in loadObject()
235 object.getProperties().put("rotation", Float.parseFloat(rotation)); in loadObject()
/external/libgdx/gdx/src/com/badlogic/gdx/math/
DRectangle.java381 float x = Float.parseFloat(v.substring(1, s0)); in fromString()
382 float y = Float.parseFloat(v.substring(s0 + 1, s1)); in fromString()
383 float width = Float.parseFloat(v.substring(s1 + 1, s2)); in fromString()
384 float height = Float.parseFloat(v.substring(s2 + 1, v.length() - 1)); in fromString()
/external/v8/test/mjsunit/regress/
Dregress-636.js30 var value = parseFloat(5.5);
/external/jcommander/src/main/java/com/beust/jcommander/converters/
DFloatConverter.java36 return Float.parseFloat(value); in convert()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
DDimenResourceLoader.java38 return Float.parseFloat(rawValue.substring(0, end)); in convertRawValue()
/external/libgdx/gdx/src/com/badlogic/gdx/utils/
DXmlReader.java628 return Float.parseFloat(getAttribute(name)); in getFloatAttribute()
634 return Float.parseFloat(value); in getFloatAttribute()
702 return Float.parseFloat(value); in getFloat()
710 return Float.parseFloat(value); in getFloat()
/external/libgdx/backends/gdx-backend-jglfw/src/com/badlogic/gdx/backends/jglfw/
DJglfwPreferences.java128 return Float.parseFloat(properties.getProperty(key, Float.toString(defValue))); in getFloat()
143 …if (val.getValue() instanceof Float) map.put((String)val.getKey(), (Float)Float.parseFloat((String… in get()
/external/libgdx/backends/gdx-backend-headless/src/com/badlogic/gdx/backends/headless/
DHeadlessPreferences.java141 return Float.parseFloat(properties.getProperty(key, Float.toString(defValue))); in getFloat()
158 …if (val.getValue() instanceof Float) map.put((String)val.getKey(), (Float)Float.parseFloat((String… in get()
/external/libgdx/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/
DLwjglPreferences.java143 return Float.parseFloat(properties.getProperty(key, Float.toString(defValue))); in getFloat()
160 …if (val.getValue() instanceof Float) map.put((String)val.getKey(), (Float)Float.parseFloat((String… in get()
/external/chromium-trace/catapult/tracing/third_party/css-element-queries/src/
DElementQueries.js28 return parseFloat(fontSize) || 16;
41 value = parseFloat(value);
/external/libgdx/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/
DLwjgl3Preferences.java141 return Float.parseFloat(properties.getProperty(key, Float.toString(defValue))); in getFloat()
158 …if (val.getValue() instanceof Float) map.put((String)val.getKey(), (Float)Float.parseFloat((String… in get()

12345