About 13,900,000 results
Open links in new tab
  1. Is there or isn't there an integer type in JavaScript?

    Nov 18, 2015 · In Javascript, the type of a variable is implicitly defined. the function parseInt will simply not take the decimal point into account and the type of the result would be an int.

  2. How can I convert a string to an integer in JavaScript?

    Again, this converts to an unsigned integer, which can lead to strange behaviors if you use a signed number.

  3. How to check if a variable is an integer in JavaScript?

    Feb 1, 2013 · This checks for data types in javascript, "1.0" is a string, and is therefore not a number. Otherwise 1 will be the value of a variable if you set it thusly var my_var=1.0;, which is correctly …

  4. What is JavaScript's highest integer value that a number can go to ...

    Nov 21, 2008 · JavaScript has two number types: Number and BigInt. The most frequently-used number type, Number, is a 64-bit floating point IEEE 754 number. The largest exact integral value of this type …

  5. Javascript data type integer - Stack Overflow

    Aug 5, 2021 · Good day, I am currently in bit confusion between Data type "number" and data type "Integer" in JavaScript. can anyone explain and gives example.

  6. math - How to perform an integer division, and separately get the ...

    In JavaScript, how do I get: The whole number of times a given integer goes into another? The remainder?

  7. How can I convert a date into an integer? - Stack Overflow

    Aug 1, 2016 · I have an array of dates and have been using the map function to iterate through it, but I can't figure out the JavaScript code for converting them into integers. This is the array of dates: var

  8. How do I convert an integer to binary in JavaScript?

    Mar 30, 2012 · I’d like to see integers, positive or negative, in binary. Rather like this question, but for JavaScript.

  9. Generating random whole numbers in JavaScript in a specific range

    Oct 7, 2009 · How can I generate random whole numbers between two specified variables in JavaScript, e.g. x = 4 and y = 8 would output any of 4, 5, 6, 7, 8?

  10. javascript - How to detect if a given number is an integer? - Stack ...

    How can I test a variable to ascertain if it contains a number, and it is an integer? e.g.