MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / number

Function number

ServerEditorWeb/ace/worker-json.js:1369–1406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1367 },
1368
1369 number = function () {
1370
1371 var number,
1372 string = '';
1373
1374 if (ch === '-') {
1375 string = '-';
1376 next('-');
1377 }
1378 while (ch >= '0' && ch <= '9') {
1379 string += ch;
1380 next();
1381 }
1382 if (ch === '.') {
1383 string += '.';
1384 while (next() && ch >= '0' && ch <= '9') {
1385 string += ch;
1386 }
1387 }
1388 if (ch === 'e' || ch === 'E') {
1389 string += ch;
1390 next();
1391 if (ch === '-' || ch === '+') {
1392 string += ch;
1393 next();
1394 }
1395 while (ch >= '0' && ch <= '9') {
1396 string += ch;
1397 next();
1398 }
1399 }
1400 number = +string;
1401 if (isNaN(number)) {
1402 error("Bad number");
1403 } else {
1404 return number;
1405 }
1406 },
1407
1408 string = function () {
1409

Callers 1

worker-json.jsFile · 0.85

Calls 2

nextFunction · 0.70
errorFunction · 0.70

Tested by

no test coverage detected