New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"types & grammar": address parseInt() crazy #45

Closed
getify opened this Issue Jan 22, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@getify
Owner

getify commented Jan 22, 2014

parseInt(1/0,19); // 18

parseInt(0.000008); // 0
parseInt(0.0000008); // 8 ==> 8e-7

parseInt(false,16); // 250

parseInt(parseInt,16); // 15

@ghost ghost assigned getify Jan 22, 2014

@getify getify changed the title from "Types & Grammar" title: address parseInt() crazy to "types & grammar": address parseInt() crazy Mar 31, 2014

@getify

This comment has been minimized.

Show comment
Hide comment
@getify

getify Jul 18, 2014

Owner

Also:

parseInt("0x10"); // 16
parseInt("10",2); // 2
Owner

getify commented Jul 18, 2014

Also:

parseInt("0x10"); // 16
parseInt("10",2); // 2

@getify getify closed this in 4fdc032 Aug 18, 2014

@pinglikethinking

This comment has been minimized.

Show comment
Hide comment
@pinglikethinking

pinglikethinking Feb 26, 2018

what is the solution to transfer string to int?

pinglikethinking commented Feb 26, 2018

what is the solution to transfer string to int?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment