# siunitx error: "invalid-token-in-number" when using math in \numrange

I want to show a range from 0 to infinity. I'm using this line of LaTeX with siunitx imported:

\numrange[range-phrase = --]{0}{\infty}


That line gives this error:

siunitx error: "invalid-token-in-number"

I've also tried with \$'s around the \infty. What is the correct way to render this range?

• Try placing parse-numbers=false in the options for \numrange
– Troy
Apr 30, 2017 at 3:18
• Nailed it! Should I delete the question, or should you submit that as an answer? Apr 30, 2017 at 3:21
As Troy notes, \numrange has a Boolean flag that controls this behavior: parse-numbers.
\numrange[range-phrase = --, parse-numbers=false]{0}{\infty}