<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script>
function round(price_staff) {
var tmp = 0;
tmp = price_staff / 10; //5.5
tmp = Math.ceil(tmp); // 6
price_staff = tmp * 10; //60
document.write('in_round=', price_staff,'<br>'); //in_round=60
}
function payment(price) {
price_staff = price; //50
price_staff = price_staff * 1.1; //55
round(price_staff);
document.write( 'price_staff_in_payment=',price_staff); // price_staff in paymen = 55
}
</script>
<script>
var price = 50;
payment(price);
</script>
</BODY>
</body>
</html>