About 3,390,000 results
Open links in new tab
  1. How to convert a string to an integer in JavaScript?

    There are two main ways to convert a string to a number in JavaScript. One way is to parse it and the other way is to change its type to a Number. All of the tricks in the other answers (e.g., …

  2. JavaScript Type Conversions - W3Schools

    JavaScript variables can be converted to a new variable and another data type: The global method Number() converts a variable (or a value) into a number. A numeric string (like "3.14") …

  3. Turn Words into Whole Numbers in JavaScript - Online Tutorials …

    Aug 24, 2020 · Learn how to convert words into whole numbers using JavaScript with this comprehensive guide.

  4. How to Convert a String to a Number in JavaScript

    May 2, 2022 · In this article, I will show you 11 ways to convert a string into a number. One way to convert a string into a number would be to use the Number() function. In this example, we …

  5. GitHub - finnfiddle/words-to-numbers: JS library to convert

    Returns a string with all instances replaced. Uses Jaro distance to find the best match for the number words. Don't rely on this being completely accurate...

  6. Convert Words To Numeric Digits - Numberify-Text | CSS Script

    Oct 30, 2023 · Numberify-Text is a JavaScript library that can take numbers written in words and convert them to numeric digits. This can be super useful for applications that need to handle …

  7. Words To Numbers - npm

    convert textual words to numbers with optional fuzzy text matching. Latest version: 1.5.1, last published: 7 years ago. Start using words-to-numbers in your project by running `npm i words …

  8. How to generate a number from the text in Javascript?

    By using plus (+) operator, we can convert it to numbers easily. You can find more information about the + operator in this article → How do Unary Plus and Unary Negation operators …

  9. Converting Text to Number in JavaScript

    Aug 6, 2023 · Learn how to parse and convert text to number in JavaScript using methods like parseInt(), parseFloat(), and unary plus (+) operator. Understand the potential pitfalls and best …

  10. Javascript: Words to numbers - Stack Overflow

    Aug 16, 2012 · How can I convert words to numbers in JavaScript? Example: "Nineteen days from now" would become "19 days from now". I'm fine with using jQuery or another library - …

  11. Some results have been removed