[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Arithmetic of Units

From: Anton Shepelev
Subject: Re: [Groff] Arithmetic of Units
Date: Sat, 16 Oct 2010 15:49:41 +0400

Michael Witten:

> 7i/2u    => ((7i)/2)u => 3.5iu <--- WTF?

Numeric  registers are dimentionless, and the speci-
fied unit of measurement only affects how the dimen-
tionless  value  it follows is to be scaled. In this

    1. 7i = 7 * 240 = 1680 (because 1i = 240u),
    2. Then this value is divided by 2 yielding 840.
    3. Finally, 840 is left unchanged
       (because 1u=1u)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]