Which way is "1" used in a sentence?

For example,
I ate 1 doughnut.
Or
I ate one doughnut.

with smaller number, it's best to write them out.

Sra