Post
Topic
Board Gambling
Re: I am creating a primedice calculator.
by
christopherkal
on 23/07/2015, 18:30:06 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());

I think you are right but float seems to work just fine for now.
I will work it more later tonight and update it Smiley