Decimal Separator

Add your suggestions for improving Poker Mavens
Post Reply
Erkan
Posts: 49
Joined: Mon Aug 15, 2011 11:19 am
Location: Amsterdam

Decimal Separator

Post by Erkan »

It would be a big advatage if you could implement 0.5 or 0.1 chips or coins
I red befoe that it would be a big task to implement this.
In my imagination its not such a big thing.

Because its only showing how much you have on your balance that's what counts.
So if you would have 127894 in the background on your account it could be showed on the screen as 1278,94 (I use komma because we use komma for instead of a dot)
So the counting in the background stays the same.

If you win like a pot of 34500 chipc/coins it would be 127894+34500=162394 in the background
And it wil show the player 345,00 and the calculation 1278,94+345,00=1623,94 in the what the player see.

So if you let the user control the seperator to put it wherever he want just as showing to a user then everything in the background stays the same.

I hope you understand it showing things and calculating is a big difference.

Regards,

Erkan.
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Decimal Separator

Post by Kent Briggs »

Erkan wrote: So if you let the user control the seperator to put it wherever he want just as showing to a user then everything in the background stays the same.
It's not quite that simple. All of the code dealing with chip balances is hard coded with integer variables. It will be simpler to rewrite that code for floating point variables (already on the to-do list) than to convert integers into strings and manually insert decimal separators.
Post Reply