Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged number



« Prev 1 Next »
  1. FAV

    Adding/remove commas in digits

    Add / Remove comma for number in the thousands. Ex: 1,000 Useful for grabbing input values to format then display, remove the comma and convert back to number to do math.
    JavaScript 6 views posted 6 years ago by supawaza
  2. FAV

    Add commas to numbers

    A quick function that makes it easy to convert an integer into a number string with commas inserted.
    JavaScript 0 views posted 6 years ago by uberdragon
  3. FAV

    Format a US Phone Numner

    Generic function - Pass the context to the function for use with any field
    JavaScript 4 views posted 6 years ago by chetkloss
  4. FAV

    format numbers in javascript with group digits

    format numbers in javascript with group digits
    JavaScript 2 views posted 7 years ago by rg443
  5. FAV

    Number in Words (Número por extenso)

    Write a given number in words - Escreve um número por extenso. Write in Brazilian Portuguese, sorry for english or other language guys but it can be adapted. Write from 1 to 9999 Based on a forum in http://scriptbrasil.com.br/forum/index.php?...
    JavaScript 3 views posted 7 years ago by glauberportella
  6. FAV

    Optional function arguments/parameters by using associative array

    By not being limited to provide certain arguments/parameters in right order when calling a function, makes the function more versatile and easier to extend without breaking old code (e.g. calls to the function). One solution is to pass an associati...
    JavaScript 3 views posted 8 years ago by coprolit
  7. FAV

    format thousands

    Thanks to http://www.mredkj.com/javascript/numberFormat.html#addcommas
    JavaScript 1 views posted 8 years ago by fengelz
  8. FAV

    Titanium Simple Numberpad Entry

    JavaScript 0 views posted 8 years ago by alexstone
  9. FAV

    get 1st float ( or int ) from given string

    it parses given string and returns 1st number it encounters ( it will replace comas with dots so floats formatted as 12,345 could be 12.345 ( some countries use that ) ) then u can parse returned value as a number / float / int - do what You need...
    JavaScript 0 views posted 9 years ago by stryju
  10. FAV

    Convert number to currency and vice-versa

    JavaScript 0 views posted 9 years ago by henriquemoody
  11. FAV

    Random Number (Float) Generator

    Simple function to return a decimal value between the minValue and the maxValue.
    JavaScript 2 views posted 9 years ago by Jamie
  12. FAV

    Random Number (Integer) Generator

    Simple function to return a value between the minValue and the maxValue.
    JavaScript 3 views posted 9 years ago by Jamie
  13. FAV

    Convert a Number to an hexadecimal String

    JavaScript 3 views posted 10 years ago by aadsm
  14. FAV

    Parse a float number to a string with x decimals

    converts a number "v" to a float number and formats the string it with "d" decimals, used on input type text onblur="parseFloatString(this.value,2);"
    JavaScript 2 views posted 10 years ago by ginoplusio
  15. FAV

    JS: Savvy looping on a Number

    The Number objects value determines how often the supplied function is repeated. Inspired by ROR & Python. "Pollutes" Number's prototype.
    JavaScript 0 views posted 10 years ago by peta
  16. FAV

    unique Random Number

    first of all i thank to our Creator and Mr.ImHugo for his Action script which i make the java script from it,its works fine and once again i gives thank him for his snippet
    JavaScript saved by 1 person 0 views posted 10 years ago by sujithfem
  17. FAV

    pressedPrintableChar

    to use this function send in an ASCII character code (use my getKeyCode function) it will return true if the code corresponds to a printable character (not backspace code - 8, enter code - 13, or "undefined")
    JavaScript 0 views posted 10 years ago by jlvallelonga
  18. FAV

    JavaScript validation library

    a set of function useful to check data (functions name in italian but easy to translate).
    JavaScript 1 views posted 11 years ago by ginoplusio
  19. FAV

    Millisecond Equivalent of Time Interval

    JavaScript 1 views posted 11 years ago by wizard04
  20. FAV

    Number Base Conversion

    Convert a number to a different base.
    JavaScript 1 views posted 11 years ago by wizard04
  21. FAV

    Format number with commas every 3 decimal places

    Adds commas to numbers. 1234567 becomes 1,234,567
    JavaScript saved by 2 people 0 views posted 11 years ago by jdstraughan
« Prev 1 Next »