Skip to content
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
Closed

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

getify opened this issue Jan 22, 2014 · 2 comments
Assignees

Comments

@getify
Copy link
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 "Types & Grammar" title: address parseInt() crazy "types & grammar": address parseInt() crazy Mar 31, 2014
@getify
Copy link
Owner Author

getify commented Jul 18, 2014

Also:

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

@getify getify closed this as completed in 4fdc032 Aug 18, 2014
@pinglikethinking
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants