Post
Topic
Board Gambling
Re: [FREE]Dice Calculator ~ Calculate your odds ~ Level up your game !
by
pooya87
on 24/07/2015, 03:03:34 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

i am just learning c# myself as a hobby and i am not quite sure about all the number variable types and these things always confuse me.
i might run some different tests with a bunch of numbers to make sure.

You want my 2 satoshi's on that ?

Here you go: Fuck calculations ! Gambe for fun, not for profits. That's the only way it should be done.

nah. the fun of coding is much more than gambling Roll Eyes