I want to remove decimal digits from discount price on product details page in magento 2.Any solution.

enter image description here

2 Answers 2


you can use floor() function for remove decimal digits from discount price Reference


To correct the product page you also should modify next javascript:


on line 38 change

var precision = isNaN(format.requiredPrecision = Math.abs(format.requiredPrecision)) ? 2 : format.requiredPrecision,


var precision = 0,

Hope this help.

I found this in: Magento 2 : How to remove decimal points from the price

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.