CVS log for mandoc/regress/roff/nr/scale.out_ascii

[BACK] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / nr

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: HEAD


Revision 1.4 / (download) - annotate - [select for diffs], Mon Jan 6 18:50:19 2025 UTC (6 months ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +5 -1 lines
Diff to previous 1.3 (colored)

Even though roff(7) numerical expressions use integer arithmetic throughout
and all numbers are rounded down before any arithmetic operation is attempted,
let the number parser support decimal fractions in front of scaling units,
which is useful for all scaling units except basic units ('u').

For example, this allows 0.25i = 2.5n = 60u.
On the other hand, even though 3p = 10u, we get 1p+1p+1p = 1p*3 = 9u
because arithmetic operations do not support floating point,
so the intermediate result gets rounded down as 1p = 3.33u = 3u.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb