Using parseInt The following examples all return 15: parseInt(' 0xF', 16) ![]() To convert the number to its string literal in a particular radix use intValue.toString(radix). If NaN is passed on to arithmetic operations, the operation results will also be NaN. You can call the isNaN function to determine if the result of parseInt is NaN.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |