Compare Revisions

parseInt()

Change Revisions

Revision 78036:

Revision 78036 by Maian on

Revision 78037:

Revision 78037 by Laptopman on

Title:
parseInt
parseInt
Slug:
JavaScript/Reference/Global_Objects/parseInt
JavaScript/Reference/Global_Objects/parseInt
Tags:
JavaScript, "JavaScript Reference"
JavaScript, "JavaScript Reference"
Content:

Revision 78036
Revision 78037
nn105      <li>
106        <code>parseInt("100", 13);</code>
107      </li>
n111        <code>parseInt("Hello", 8);</code>n114        <code>parseInt("Hello", 8); // Not a number at all</code>
n114        <code>parseInt("0x7", 10);</code>n117        <code>parseInt("0x7", 10); // Not in base 10 format</code
 >>
t117        <code>parseInt("FFF", 10);</code>t120        <code>parseInt("546", 2); // Digits are not valid for bin
 >ary representations</code>

Back to History