How to remove decimal price in magento

Hello Everyone,

                 Today I’m going to tell you how to remove decimal price in magento.In simple words, This tutorial will tell to change the price from Rs 121.00 to Rs  121 .
For this, you need to edit code/core/Mage/Directory/Model/Currency.php
  • Find the following :-
 public function format($price, $options=array(), $includeContainer = true, $addBrackets = false)

    {

return $this->formatPrecision($price, 2, $options, $includeContainer, $addBrackets);

    }

on line no 194

change this code to:-
 public function format($price, $options=array(), $includeContainer = true, $addBrackets = false)
    {

return $this->formatPrecision($price, 0, $options, $includeContainer, $addBrackets);

    }
0 – Denotes the precision point for price..
Clear the Cache.
– Go to System –> Cache Management
– Refreh Cache.
It is done.  🙂
Happy coding