OK this is going to be a bit long winded, but not all that difficult.
Pro 240c is right in saying that you have to take it apart to do it properly, but you can get a reasonable approximation with fairly straight forward maths (or the exact answer with complex maths).
There are 2 main issues, one is the assumption of standard temperature & pressure (25 deg.C & 101.3kpa or 14.7 psi). and the other is the quality of your pressure gauge. I'll ignore these probs for the mo.
I'll use the A-15 (cos I know the numbers)
Bore 7.60cm, stroke 8.20 cm (work in cm rather than mm so you get cc's)
area= pi*r^2 (radius is 3.80cm)
so 3.1412* (3.8*3.8)
=45.3645 cm^2
* by stroke to get volume
45.3645 * 8.20 = 371.98 cc per cylinder (1488cc total..... is that what the book says
)
Now the tricky bit. The cylinder is sorted, but you dont know the extra cc from the combustion chamber.
Boyle reckons that when you compress a gas,
pressure 1 * volume 1 = pressure 2 * volume 2.
if you rearrange it you can get:
V2 = P1 * V1 / P2
so, chamber cc = 14.7psi * cyl. volume (L) / comp. test result (psi)
e.g. 14.7 * 0.3798 / 170 = 0.032841 or 32.8cc
Sweet
But, the lunch bell hasn't rung yet. Now that you know the chamber size the original assumption about cylinder volume is incorrect cos you havn't accounted for the chamber. the new volume is:
371.98 + 32.84 = 404.82 cc
then you take 404.82, plug it back into the top of the equation to get a revised answer of 35.01cc
and again to get 35.19
and you can keep going till you get bored, or stop when you reckon inaccuracies in your pressure gauge will have a greater effect on the answer
.
now that you know the cc's you can calculate compression using the equation in pro240C's post.
Man, I wish my year 9 teacher had put that 5hit into the context of hotting up cars, I might of done better than 23% and a note to the oldies!!!