부가가치세 계산하기

부가가치세 계산하기

Javascript

var totalAmount = 10000;
var totalVat = Math.round(totalAmount-(totalAmount/1.1));
var totalPrice = Number(totalAmount - totalVat);
var totalPriceWon = totalAmount.toString().format();
var totalPriceVat = totalVat.toString().format();

PHP

$totalAmount = 10000;
$totalVat = round($totalAmount-($totalAmount/1.1));
$totalPrice = (int)($totalAmount - $totalVat);
$totalPriceWon = number_format($totalAmount);
$totalPriceVat = number_format($totalVat);
Scroll to Top