C
C#15mo ago
احمد

❔ ✅ Fruit Machine Game

Need to figure out how to keep an integer a certain length
No description
6 Replies
احمد
احمدOP15mo ago
It takes away 0.2 from the balance everytime another spin is made how can i make it go from 0.60000000000001 to 0.6?
Hackmagician
Hackmagician15mo ago
Math.Round(original, 1) 1 being 1 decimal so .6 in this case
احمد
احمدOP15mo ago
what's original meant to be
Hackmagician
Hackmagician15mo ago
this Round() takes a double number and a int decimals
احمد
احمدOP15mo ago
else if (response == "Y")
{
second_initiator = false;
new_balance = new_balance - 0.2;
}
else if (response == "Y")
{
second_initiator = false;
new_balance = new_balance - 0.2;
}
is Math. built-in? Thank you 🙂 !close
Accord
Accord15mo ago
Closed! Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?