`Try executing the following in JavaScript:  parseInt('01'); //equals 1 parseInt('02'); //equals 2 parseInt('03'); //equals 3 parseInt('04'); //equals 4 parseInt('05'); //equals 5 parseInt('06'); //equ...`
`How can I generate some unique random numbers between 1 and 100 using JavaScript?...`
`I have the following code:  var str = "0x4000000000000000";   //4611686018427387904 decimal var val = parseInt(str); alert(val);   I get this value: "4611686018427388000", which is 0x4000000000000060  I was wondering if JavaScript i...`
`I am looking for an easy way in JavaScript to check if a number has a decimal place in it (in order to determine if it is an integer).  For instance,  23 -> OK 5 -> OK 3.5 -> not OK 34.345 -> not OK   if(number is integer) {...}...`
`I want to convert an integer into its character equivalent based on the alphabet. For example:  0 => a 1 => b 2 => c 3 => d   etc. I could build an array and just look it up when I need it but I’m wondering if there’s a built in fun...`
`I have a variable that stores false or true, but I need 0 or 1 instead, respectively. How can I do this?...`
`I want to limit a number between two values, I know that in PHP you can do this:  \$number = min(max(intval(\$number), 1), 20); // this will make \$number 1 if it's lower than 1, and 20 if it's higher than 20   How can I do this in javascript, w...`
`Requirement:   Convert input integer or decimal to an array and convert array of integers which may include a decimal to a number.  Restriction:   Do not use string methods or convert input or output to a string during the procedure (a self-imposed r...`
`I want to split a 64bit integer into two 32bit integers:  var bigInt = 0xffffff;  var highInt = bigInt >> 8 // get the high bits 0xfff var lowInt = bigInt // cut of the first part (with &)?  console.log(highInt); // 0xfff console.log(lowInt...`
`I am writing some type check functions. I want:   isInteger isFloat   While writing isInteger, I noticed that isInteger(1.0) returns true. I want this to return false.  My function is like this:  function isInteger(value) {     return typeof value ==...`