Help for this page

Select Code to Download


  1. or download this
      strValue += "";      // Convert any digits to string
      if (! strValue) { strValue = "0"; }  // Convert empty string to 0
    ...
    
      // Add a leading 0 to any numbers starting with a decimal point
      if (strValue.match (/^\./)) { strValue = "0" + strValue; }
    
  2. or download this
    value|precision     sprintf   Incognito   Albannach       jeffa      r
    +ob_au
     '123.45678'|3:     123.457     123.456     123.456         123     12
    +3.457
    ...
          '1000'|5:  1000.00000  1000.00000  1000.00000       01000  1000.
    +00000
         '12.56'|0:          13          12          12          12       
    +   13