var number = 12.3456789;
var rounded = Math.round( number * 10 ) / 10;
// rounded is 12.3
Read More Posts
- How to redirect on any specific page after woocommerce login?
- How to fetch data (messages) in every second with ajax (setinterval) from mysql (PHP) in wordpress?
- How to get current user info from wp user database in wordpress?
- How to get timstamp from time in php?
- How to create custom OTP login in woocommerce without plugin?