It isn’t hard to format price values in Magento 2. There are many (wrong) ways to achieve the correct formatting of prices — or any value — in Magento 2. But fear not, today I will provide you with the right, clean way to format any value to a price (with currency symbol).
A quick post here, which is more of a note to myself, because I’ve just spent one hour digging through methods for this. If you want to display the total price including or excluding VAT in Magento, using strictly methods already integrated in Magento, use the below code to call these in a pre-formatted way.