[ create a new paste ] login | about

Link: http://codepad.org/nfVNOLx3    [ raw code | output | fork ]

martin@mustbebuilt.co.uk - PHP, pasted on Oct 12:
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
function priceWithVAT($val){
	$priceVAT = $val * 1.2;
	$priceVAT = round($priceVAT, 2);
	return $priceVAT;
}
priceWithVAT(21.2134);
if(isset($priceVAT)){
    echo 'Y';
}else{
    echo 'N';
}
?>


Output:
1
N


Create a new paste based on this one


Comments: