title: Javascript to understand standard form?
body: <p>What I am trying to do is this, this user will input a string of binary which will be divided by 360 have it rounded down then have it's remainder recorded as well, as a form of compression, giving the user 2 small strings instead of a 100 digit long string. However, problems arise when I give it a standard form input to decompress (i.e. 222e^-18). The way that I compress the string is as follows;</p>
  
  <pre><code>function getInput(){ 
  prompt('Input');
  } var userInput = prompt('Input');
  
  var compressedInput = userInput / 360;
  
  var compressedDivision = Math.floor(compressedInput)
  
  var compressedRemainder = userInput % 360;
  
  console.log(compressedDivision)
  console.log(compressedRemainder)
  </code></pre>
  
  <p>And the code to decompress the string is below;</p>
  
  <pre><code>function decompressFn(){
      prompt('Division')
      prompt('Remainder')
  }
  
  var divisionDecompress = prompt('Division');
  var remainderDecompress = prompt('Remainder');
  
  var divisionOutput = divisionDecompress * 360;
  var decompressedOutput = divisionOutput + remainderDecompress;
  
  console.log(decompressedOutput)
  </code></pre>
  
  <p>Now, If you are to give a string into the input for the first bit of code such as what follows; </p>
  
  <p><em>010011000110111101110010011001010111001001101101001000000100100101110000011100110111010101101101001000000110010001101111011011000110111101110010001000000110010101110100</em></p>
  
  <p>(Lorem Ipsum dolor et)</p>
  
  <p>You will get two outputs, the rounded division and the remainder. But these however will be in standard form so if you were to enter these into the two prompts for the decompression script, you'd get this;</p>
  
  <p><em>1.0011000110111101e+1660</em></p>
  
  <p>which if plugged into a online scientific calculator, seems to be infinite! So my question is as the title implies, how do you get JavaScript to understand standard form, or is there something up with my code?</p>