# Programmed Math/Decimals

Decimals (or floating point numbers) are the oposite of fractions, where fractions take the form of a number over a number eg: $\frac{1}{2}$ which is one half.
$\frac{2}{4}$ Is still one half. $2/4 = 0.5$ since $\frac{1}{2} = \frac{2}{4}$ and $0.5*4 = 2$
So the formulae could be: $\frac{a}{b}=x$ and thus $x*b = a$