Depending on the style you use, there are rules to writing numbers. Here several general rules are discussed.
Source: LaShanda Lawrence