What I have done in the past is big round numbers like "ten thousand" are spelled out, but something precise like "Set heading to 197 mark 5" or "Use 10.758 grams of stuff" are numeric.
Just dunno what "right" is for this.

Went with "ten thousand years" in this case though for now.