Philusha1983/pub-display-plaato-taplist

Round the numbers to 1 digit after decimal point

Philusha1983 opened this issue · 0 comments

For now the api call returns long numbers.
I need to see how I can round the returned number and display it.

Exploring :

var jqxhr = $.get( "example.php", function() {
  alert( "success" );
})
  .done(function() {
    alert( "second success" );
  })
  .fail(function() {
    alert( "error" );
  })
  .always(function() {
    alert( "finished" );
  });
 
// Perform other work here ...
 
// Set another completion function for the request above
jqxhr.always(function() {
  alert( "second finished" );
});

https://api.jquery.com/jquery.get/#jqxhr-object