The output from the code below produces a decimal number with 13 digits after decimal mark. I want to round off that number to only 2 digits after decimal mark. I've tried to use the Decimal.Round Method
to no avail, apparently I'm not using it right.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TorrentPirate
{
class Program
{
static void Main(string[] args)
{
TimeSpan time = TimeSpan.FromSeconds(1000);
double downloadTime = time.TotalHours;
double money = 50;
double wifeSpending = money * downloadTime;
Console.WriteLine(Convert.ToDecimal(wifeSpending));
}
}
}