Post
Topic
Board Gambling
Re: I am creating a primedice calculator.
by
pooya87
on 23/07/2015, 16:27:19 UTC
does double provide enough precision?
isn't decimal more suitable in these situations?

here is a little bit of clean-up , hope you don't mind me meddling  Roll Eyes
Code:
Console.WriteLine("Input the Chance of Losing 0-100% ");
float chance = float.Parse(Console.ReadLine());
Console.WriteLine("Input tries ");
int tries = int.Parse(Console.ReadLine());
Console.WriteLine("Input Amount of Bitcoins you wish to gamble ");
float btc = float.Parse(Console.ReadLine());
Console.WriteLine("Input House Edge 0-100% ");
float house_edge = float.Parse(Console.ReadLine());