分类
后端

magento如何将数字转化成货币数字

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$priceHelper = $objectManager->get('Magento\Framework\Pricing\Helper\Data');
$price = '95.68';
$price = $priceHelper->currency($price, true, false);
//$price = $95.68