← LibraryNumbers, Fractions, and DecimalsEngineering · MathematicsLesson 1/7← PrevNext →
ArticlePublished 11 Jul 2026Updated 12 Jul 202611 min readBy Kevin Jogin
KEVOS® Knowledge Library · Engineering → Mathematics

Engineering / Mathematics

Numbers, Fractions, and Decimals

Every calculation downstream — triangles, stresses, speeds, costs — stands on the arithmetic in this page: signed numbers, ratios, fractions, the inch–millimetre bridge, powers, logarithms and the handful of constants a working engineer reaches for daily.

  • Reading time · 12 min
  • 13 sections
  • Tables computed for this page
  • 5 : 127 — the exact metric ratio
0¼½¾1″27/64″= 0.421 875″ = 10.7156 mm1 in = 25.4 mm — exact by definition since 1959
Doc №KL-ENG-MATH-002
SectionEngineering → Mathematics
Sheet1 of 1
DrawnKEVOS®
Date2026-07-11

§1Signed numbers and order of operations

Negative numbers carry direction — a coordinate left of datum, a shortfall, a temperature drop. The sign rules and a fixed order of evaluation keep long expressions unambiguous.

Sign rules
OperationRuleInstance
Add, like signsAdd magnitudes, keep the sign(−7) + (−5) = −12
Add, unlike signsSubtract magnitudes, take the sign of the larger(−7) + 12 = +5
SubtractChange the sign of the subtrahend, then add6 − (−9) = 15
Multiply / divideLike signs give +, unlike give −(−8) × (−3) = 24; (−8) ÷ 2 = −4

Expressions evaluate in a fixed order — brackets first, then indices (powers and roots), then multiplication and division left to right, then addition and subtraction left to right. So 5 + 3 × 2² = 5 + 12 = 17, not 32; brackets override: (5 + 3) × 2² = 32. When transcribing a formula into a calculator or spreadsheet, brackets are cheaper than a scrapped part — use more than the minimum.

Contents

§2Ratio and proportion

A ratio compares two quantities of the same kind; a proportion states that two ratios are equal. Most gearing, scaling and mixing arithmetic is proportion in light disguise.

Proportion ab = cd ⇒ ad = bc  (the product of the means equals the product of the extremes)

Quantities are in direct proportion when they rise together (cutting time and length of cut) and in inverse proportion when one rises as the other falls (gear teeth and speed, spindle speed and diameter at constant surface speed).

Example 1 — gear speeds are inversely proportional to teeth

A 24-tooth pinion at 900 rev/min drives a 60-tooth wheel. Speeds are inverse to tooth counts: n₂ = n₁ × t₁/t₂ = 900 × 24/60 = 360 rev/min.

Compound proportion chains several factors: if a job’s time is proportional to length and inversely proportional to feed, doubling the length and increasing feed by half changes time by 2 ÷ 1.5 = 1.33 — a third longer, no fresh algebra required.

Contents

§3Percentage

A percentage is a fraction with denominator 100 — nothing more. Keep clear what the 100 % base is, and the rest is multiplication.

part = rate × base  rate = partbase × 100 %  base = partrate
Example 2 — tolerance and scrap as percentages

A tolerance of ±0.05 mm on a 25.00 mm dimension is 0.05/25 = ±0.2 %. A batch with 3 rejects in 250 parts has a scrap rate of 3/250 = 1.2 %.

Percentage points are not percentages

Scrap rising from 1.2 % to 1.8 % is a rise of 0.6 percentage points but a 50 % relative increase. State which is meant; reports have been derailed by less.

Contents

§4Common fractions and reciprocals

Workshop fractions survive because inch tooling still arrives in 64ths. The arithmetic never changes: common denominators to add, invert to divide.

Fraction arithmetic
OperationRule
Add / subtracta/b ± c/d = (ad ± cb)/bd — or use the lowest common denominator
Multiplya/b × c/d = ac/bd — cancel common factors first
Dividea/b ÷ c/d = a/b × d/c — invert the divisor and multiply
Reciprocalreciprocal of x is 1/x; of a/b is b/a
Example 3 — stacking three shims

Shims of 3/8″, 5/16″ and 7/32″ stack to 12/32 + 10/32 + 7/32 = 29/32″ = 0.906 25″.

Reciprocals turn division into multiplication — useful when one divisor recurs. Dividing repeatedly by 0.039 37 (the old inch-per-millimetre figure) is the same as multiplying by its reciprocal 25.400 1; the modern definition below makes the exact factor 25.4.

Contents

§5Decimals and the inch–millimetre bridge

Since 1959 the inch has been defined as exactly 25.4 mm, so every conversion below is exact arithmetic, not measurement.

1 inch = 25.4 mm (exact)  mm = in × 25.4  in = mm ÷ 25.4

A decimal fraction terminates only when its denominator contains no prime factors other than 2 and 5 — which is why every 64th of an inch has an exact decimal, and why thirds recur. The table gives all sixty-four steps with their exact millimetre equivalents.

Fractional inch → decimal inch → millimetres (exact, 1/64″ steps)
FractioninchmmFractioninchmm
1/640.0156250.396933/640.51562513.0969
1/320.0312500.793717/320.53125013.4937
3/640.0468751.190635/640.54687513.8906
1/160.0625001.58759/160.56250014.2875
5/640.0781251.984437/640.57812514.6844
3/320.0937502.381219/320.59375015.0812
7/640.1093752.778139/640.60937515.4781
1/80.1250003.17505/80.62500015.8750
9/640.1406253.571941/640.64062516.2719
5/320.1562503.968821/320.65625016.6687
11/640.1718754.365643/640.67187517.0656
3/160.1875004.762511/160.68750017.4625
13/640.2031255.159445/640.70312517.8594
7/320.2187505.556223/320.71875018.2562
15/640.2343755.953147/640.73437518.6531
1/40.2500006.35003/40.75000019.0500
17/640.2656256.746949/640.76562519.4469
9/320.2812507.143725/320.78125019.8438
19/640.2968757.540651/640.79687520.2406
5/160.3125007.937513/160.81250020.6375
21/640.3281258.334453/640.82812521.0344
11/320.3437508.731227/320.84375021.4312
23/640.3593759.128155/640.85937521.8281
3/80.3750009.52507/80.87500022.2250
25/640.3906259.921957/640.89062522.6219
13/320.40625010.318729/320.90625023.0187
27/640.42187510.715659/640.92187523.4156
7/160.43750011.112515/160.93750023.8125
29/640.45312511.509461/640.95312524.2094
15/320.46875011.906231/320.96875024.6062
31/640.48437512.303163/640.98437525.0031
1/20.50000012.70001/11.00000025.4000
mm = in × 25.4 exactly; every value above is exact arithmetic, not a rounded measurement.
Contents

§6Continued and conjugate fractions

When a machine offers only whole-number gear teeth, the problem becomes: find a fraction with small terms that approximates a given decimal as closely as possible. Continued fractions solve it optimally.

Any number unfolds into a staircase of whole parts and reciprocals. Cutting the staircase early yields the convergents — the best possible fractions for their size of denominator:

25.4 = 25 + 1 2 + 1 1 + 1 1 = 127/5 convergents:  25/1  →  51/2  →  76/3  →  127/5 (exact) read: [25; 2, 1, 1]
Fig. 1. The staircase for 25.4 terminates, because 25.4 is rational: it is exactly 127/5. This is why a 127-tooth gear cuts exact metric threads on an inch leadscrew.
Example 4 — the metric transposing gear

To cut a metric pitch on an inch-leadscrew lathe the ratio 25.4 : 1 must appear in the gear train. From the staircase, 25.4 = 127/5 exactly — so a 127-tooth gear paired with a 5 (in practice 50 : 127) gives a perfect conversion. No smaller pair of whole numbers can: 127 is prime.

Example 5 — best small fraction for 0.31

Unfolding 0.31 gives [0; 3, 4, 2, 2, 1] with convergents 1/3, 4/13, 9/29, 22/71, 31/100. With denominators limited to 16, the best is 4/13 = 0.307 69 (error 0.002 31) — better than the “obvious” 5/16 = 0.3125 (error 0.0025).

Conjugate fractions are pairs a/b and c/d with ad − bc = ±1; each is the closest fraction to the other for its denominator, and their mediant (a+c)/(b+d) lands between them. Successive convergents above are conjugate — the property that guarantees their optimality, and a quick test when hunting change-gear ratios by hand.

Contents

§7Powers, roots and powers of ten

Index laws compress big arithmetic; powers-of-ten notation keeps the decimal point honest when the numbers span galaxies or microns.

Index laws aᵐ × aⁿ = aᵐ⁺ⁿ aᵐ ÷ aⁿ = aᵐ⁻ⁿ (aᵐ)ⁿ = aᵐⁿ a⁻ⁿ = 1/aⁿ a¹ᐟⁿ = ⁿ√a a⁰ = 1

In powers-of-ten form every value is a number between 1 and 10 times a power of ten. Multiply the leading numbers, add the exponents; divide, subtract them: (6.4 × 10³)(2.5 × 10⁻⁵) = 16 × 10⁻² = 0.16, and (8.4 × 10⁵) ÷ (2.4 × 10⁻²) = 3.5 × 10⁷.

Squares, cubes, roots and reciprocals, n = 1–50 (computed)
n√n∛n1/n
1111.000001.000001.000000
2481.414211.259920.500000
39271.732051.442250.333333
416642.000001.587400.250000
5251252.236071.709980.200000
6362162.449491.817120.166667
7493432.645751.912930.142857
8645122.828432.000000.125000
9817293.000002.080080.111111
1010010003.162282.154430.100000
1112113313.316622.223980.090909
1214417283.464102.289430.083333
1316921973.605552.351330.076923
1419627443.741662.410140.071429
1522533753.872982.466210.066667
1625640964.000002.519840.062500
1728949134.123112.571280.058824
1832458324.242642.620740.055556
1936168594.358902.668400.052632
2040080004.472142.714420.050000
2144192614.582582.758920.047619
22484106484.690422.802040.045455
23529121674.795832.843870.043478
24576138244.898982.884500.041667
25625156255.000002.924020.040000
26676175765.099022.962500.038462
27729196835.196153.000000.037037
28784219525.291503.036590.035714
29841243895.385163.072320.034483
30900270005.477233.107230.033333
31961297915.567763.141380.032258
321024327685.656853.174800.031250
331089359375.744563.207530.030303
341156393045.830953.239610.029412
351225428755.916083.271070.028571
361296466566.000003.301930.027778
371369506536.082763.332220.027027
381444548726.164413.361980.026316
391521593196.245003.391210.025641
401600640006.324563.419950.025000
411681689216.403123.448220.024390
421764740886.480743.476030.023810
431849795076.557443.503400.023256
441936851846.633253.530350.022727
452025911256.708203.556890.022222
462116973366.782333.583050.021739
4722091038236.855653.608830.021277
4823041105926.928203.634240.020833
4924011176497.000003.659310.020408
5025001250007.071073.684030.020000
Contents

§8Logarithms

A logarithm answers “ten (or e, or two) to what power gives this number?” — turning multiplication into addition and powers into products, which is why they run growth, decay and decibel arithmetic.

Laws log(ab) = log a + log b log(a/b) = log a − log b log aⁿ = n log a log_b x = ln x / ln b

Common logs (base 10) suit orders of magnitude: log 250 = 2.398 — a number of magnitude 10². Natural logs (base e) suit anything growing at a rate proportional to itself: ln 250 = 5.521. Base 2 counts doublings: log₂ 10 = 3.32, so a thousand ≈ ten doublings.

Example 6 — doubling time at 5 % growth

How many periods does a quantity growing 5 % per period take to double? Solve 1.05ⁿ = 2: n = ln 2 / ln 1.05 = 14.21 periods. (The banker’s “rule of 72” estimates 72/5 = 14.4 — close, and now you know where it comes from.)

Contents

§9Imaginary and complex numbers

Define i so that i² = −1 and every polynomial gains a full set of roots — and, more usefully for engineers, every rotating or oscillating quantity gains a one-line algebra.

A complex number z = a + bi plots as the point (a, b). Its polar form carries the same information as a length and a direction:

r = a² + b²  θ = arctan(b/a)  z = r(cos θ + i sin θ)

Adding complex numbers adds their components, like vectors. Multiplying them multiplies the lengths and adds the angles — multiplication is rotation-and-scale, the fact that makes phasor analysis of vibration and AC circuits work.

Example 7 — multiply two ways

(3 + 4i)(1 + 2i) = 3 + 6i + 4i + 8i² = −5 + 10i. Check in polar form: lengths 5 × 2.236 = 11.180 and angles 53.13° + 63.43° = 116.57°; converting back, 11.180∠116.57° = −5 + 10i. Same answer, and the polar route never touched i².

Contents

§10Factorials, permutations and combinations

Counting arrangements is the doorway to probability and to the statistics of §Manufacturing Data Analysis. Three formulas cover it.

n! = n(n−1)(n−2)···1  P(n, k) = n!(n−k)!  C(n, k) = n!k!(n−k)!

Permutations count ordered selections; combinations count selections where order is irrelevant. 10! = 3 628 800 — factorials outgrow everything, which is why counting problems turn astronomical so quickly.

Example 8 — choosing gauge blocks

From 8 blocks, the number of ordered ways to pull 3 is P(8, 3) = 8 × 7 × 6 = 336; the number of distinct 3-block sets is C(8, 3) = 336/3! = 56.

Contents

§11Prime numbers and factors

Primes are the atoms of the whole numbers. Factorising exposes what a number can be evenly divided into — the question behind gear trains, indexing plates and batch splitting.

To factorise, divide out the smallest primes in turn: 3960 = 2 × 1980 = 2² × 990 = 2³ × 495 = 2³ × 3 × 165 = 2³ × 3² × 55 = 2³ × 3² × 5 × 11. Any usable gear pair, index step or even subdivision of 3960 must assemble from those atoms.

Why a prime tooth count earns its keep

Give one gear of a pair a prime tooth count sharing no factor with its mate and every tooth eventually meets every tooth space — a hunting tooth — distributing wear evenly instead of letting the same pairs pound each other. The 127-tooth metric gear of §6 is prime twice over: exact and self-levelling.

The first 100 primes (computed by sieve)
2357111317192329
31374143475359616771
7379838997101103107109113
127131137139149151157163167173
179181191193197199211223227229
233239241251257263269271277281
283293307311313317331337347349
353359367373379383389397401409
419421431433439443449457461463
467479487491499503509521523541
A number n is prime if no prime ≤ √n divides it — test divisors only that far.
Contents

§12Constants worth memorising

A dozen numbers appear so often that fetching them from memory is faster than any lookup. Computed here to six figures.

Constants to six decimal places (computed)
ConstantValueConstantValue
π3.1415936.283185
π/21.570796π/40.785398
1/π0.318310π²9.869604
√21.414214√31.732051
1/√20.7071071/√30.577350
e2.718282ln 102.302585
log₁₀e0.4342941° in rad0.017453
1 rad in °57.295780φ (golden)1.618034
Contents

§13Quick reference

The working core of the page on one card rack.

Proportion

a/b = c/d ⇒ ad = bc

gears: n₂ = n₁ t₁/t₂

Inch–mm

1 in = 25.4 mm exact

25.4 = 127/5

Indices

aᵐaⁿ = aᵐ⁺ⁿ (aᵐ)ⁿ = aᵐⁿ

a¹ᐟⁿ = ⁿ√a

Logarithms

log ab = log a + log b

log_b x = ln x / ln b

Complex

r = √(a² + b²), θ = arctan b/a

multiply: r₁r₂, θ₁ + θ₂

Counting

P(n,k) = n!/(n−k)!

C(n,k) = n!/k!(n−k)!

Contents

Continue learning

NEXT LESSON →Algebra and EquationsArticle · MathematicsGeometryArticle · MathematicsSolution of TrianglesArticle · MathematicsMatricesArticle · Mathematics