Caniuse: parseInt() browser compatibility

Created on 21 Aug 2017  路  6Comments  路  Source: Fyrd/caniuse

Hi guys !

Amazing work on the site, I use it almost everyday. Can you please do a research about parseInt() function ? Like parseInt(' 0xF', 16); ? This is the function on MDN https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/parseInt

Thank you so much !

Kind regards,
Radu

Fully supported Needs search result

Most helpful comment

It would be kind of nice to know which browsers support it without parsing strings that start with "0" as octal. That would help developers know whether they can use it safely without the radix parameter. I don't know if that would fit on caniuse, though.

All 6 comments

-1
This has been in JavaScript since forever... Even Netscape supported this.

And you can tell me for sure which desktop version, mobile version, platform version is this function supported ? And you're just assuming that everyone is born with all the frontend + backend developer knowledge ? I find your fronting rather noobish and ignorant. To say the least.

Haha wow...

And you're just assuming that everyone is born with all the frontend + backend developer knowledge ?

No, I don't. But in the link you posted yourself, it says it was defined in ECMAScript 1st Edition (ECMA-262). If you had clicked that, you would see that this is from 1997. Also, the table on MDN clearly specifies that all browsers support this.

This does not belong on caniuse.

It would be kind of nice to know which browsers support it without parsing strings that start with "0" as octal. That would help developers know whether they can use it safely without the radix parameter. I don't know if that would fit on caniuse, though.

It would be kind of nice to know which browsers support it without parsing strings that start with "0" as octal.

See #1686 (modern browsers no longer parse as octal).

Available at https://caniuse.com/#feat=mdn-javascript_builtins_parseint and https://caniuse.com/#feat=mdn-javascript_builtins_parseint_leading_zero_strings_as_decimal

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mhartoft picture mhartoft  路  3Comments

SanderMuller picture SanderMuller  路  3Comments

36degrees picture 36degrees  路  3Comments

Schweinepriester picture Schweinepriester  路  3Comments

valtido picture valtido  路  3Comments