$price = '12,93'; $price = round((str_replace(',','.',$price) * $exchange_rate),2); echo $price; its still printing 12,93