How to Remove the numbers after the dot.? : i have a drop function to get the value and show in an input field but i just need it as decimal number .





   

     events: {
                drop: function() {
                  document.getElementById('point-temp').value = this.y;
                }
              }
    
    html:
    
    <input placeholder="new Temperature" id="point-temp" type="text" class="field"  value="">