Charlie Sheen has inked a two-season deal with Warner Bros. TV wherein he will continue on Two and a Half Men at the whopping salary of nearly $2 million per episode, according to Variety.

The deal was reached late Monday after months of wrangling between Sheen's reps and Warner Bros. TV execs. Sheen was already the highest-paid actor among contemporary primetime TV actors under his previous salary of about $850,000 an episode. Now he's the top grosser by a mile with a deal that puts him in the neighborhood of the $1.8 million-$1.9 million per segment.

RELATED: Jon Cryer Recalls Charlie Sheen Breakdown and the Crazy Internet Storm That Followed

"To put a fitting end on the two and one-half months of whirlwind speculation, I'm looking forward to returning to my CBS home on Monday nights," Sheen said in a statement. "I want to thank (CBS chief) Les Moonves for his support."