I've custom block phtml in my old store and I need to be converted to Magento 2.
Magento 1.9.x code:
$_finalPriceInclTax = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice(), true);
$unitPrice = Mage::helper('core')->currency(round($_finalPriceInclTax / $_product->getHedNetWeight(), 2),true,false);
How can I get Final Price included Tax in Magento 2 and how can I use Mage::helper('core')->currency(round)
in Magento 2?
I try to display the price like this:
$this->helper('Magento\Framework\Pricing\Helper\Data')->currency($finalprice / $HedNetWeight,true,false);
Thank you