Numbers and numerals

How to use numbers in writing; when they should be written in words and when you can use numerics.