Round the numbers to 1 digit after decimal point
Philusha1983 opened this issue · 0 comments
Philusha1983 commented
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" );
});