The ratio of two numbers is one divided by the other, so width/height or height/width.
Ratios are unit-less - they don’t have units.
I’m not sure what you’re asking. The ratio of width:height of all A-series papers is not a whole number. It’s 1:sqrt(2). sqrt(2) is an irrational number (~1.414…).
This is based on the study of continued fractions. The Wikipedia page is fairly dense, but if you happen to want to learn more about them and why this works, an early college level paper is a pretty good explanation.
Note that the A-series paper sizes are designed around the square root of 2. The initial fractions for each paper size should be similar to each other and to those for √2, and will differ only because the actual sizes are rounded to the nearest millimeter.
If the aim is to have a pasteup grid which is sheet of paper size, maybe PasteUp should have a few pre-set grid sizes to match common ratios: A-series (ISO 216), Letter and maybe ISO-7810 (credit/ID cards) and even 3:2 (photos) for print reasons, and maybe 1:1 and 16:9 for digital imagery reasons?
I am no mathematics expert but would like to point out that when it comes to using ratios in maths the modulo is importiant.
in mathematics and computing, it refers to the modulo operation, which finds the remainder after division (e.g., 5 mod 3 = 2), often symbolized as the percent sign (%)
I note it here because this is effectivly what the remainder[] operator is. {{{ [[5]remainder[3]] }}}=2 ie what is the remainder/is left after dividing 5 by 3? two whole numbers.