Introduction:
Here I will explain how to use jQuery to round off numbers with decimal values example using JavaScript Math.round function or jQuery round off (roundup or rounddown) number with decimal values using JavaScript Math.round function.
Description:
In previous articles I explained jQuery fixed header on window scroll with example, jQuery currency conversion as per exchange rates, jQuery convert json data to html table with example, jQuery reload iframe for every 10 or 5 seconds, jQuery reload or refresh iframe, Javascript call function for every 5 or 10 seconds using setinterval function and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to use jQuery to round off numbers with decimal values with example.
In previous articles I explained jQuery fixed header on window scroll with example, jQuery currency conversion as per exchange rates, jQuery convert json data to html table with example, jQuery reload iframe for every 10 or 5 seconds, jQuery reload or refresh iframe, Javascript call function for every 5 or 10 seconds using setinterval function and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to use jQuery to round off numbers with decimal values with example.
By using Math.round JavaScript
function we can round off (roundup or rounddown) numbers with decimal values
using jQuery like as shown below
|
If you
want to check it in complete example you need to write the code like as shown
below
|
Live
Demo
For
live demo enter number with decimal value in below textbox and click button to
round off numbers
|
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
|
|||
1 comments :
vbdgdsbvf
Note: Only a member of this blog may post a comment.