Based on the data is the Number type:

var numVal=32;

  1. numVal.toString(2)  //100000
  2. numVal.toString(8) //40
  3. numVal.toString(10)  //32
  4. numVal.toString(16)  //20