I want to round both 130.68(greater than or equals 130.5) and 131.32(less than 131.5) values to 131.
Use Math.round()
Math.round(130.68); // return 131
Math.round(131.32); // return 131
Fiddle Demo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With