Not playing the lottery will earn me between 0 and 0 extra dollars.
Playing the lottery will earn me between 0 and 10 million extra dollars.
Statistics like this require the use of expected outcomes. If I don't play the lottery I spend zero dollars, and I have a 100% chance of gaining zero dollars, so my expected outcome is zero dollars.
If I do play the lottery, I pay 1 dollar, and my expected outcome is either zero dollars (999,999,999/1,000,000,000 chance) or $1 million (1/1,000,000,000)*. The expected outcome is (-1 + [0 x (999,999,999/1,000,000,000)] + [10 million x (1/1,000,000,000)].
So your expected outcome is -99.99 cents.
* I made up the statistics for the payoff. They're not really important, since as long as (chance of payoff) x (monetary value of payoff) is less than (price of ticket), your expected payoff will always be less than zero. In cases where this is not true, you could theoretically guarantee a positive result by buying all of the tickets. This has famously been done in the past a handful of times for exceptionally large payoffs, but the organization running the lottery typically finds out and refuses to honor the holder's tickets, saying that they've violated the spirit of the game.