C
C#14mo ago
Ahmed

❔ ✅ Fruit Machine Game

Need to figure out how to keep an integer a certain length
No description
6 Replies
Ahmed
AhmedOP14mo 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
Hackmagician14mo ago
Math.Round(original, 1) 1 being 1 decimal so .6 in this case
Ahmed
AhmedOP14mo ago
what's original meant to be
Hackmagician
Hackmagician14mo ago
this Round() takes a double number and a int decimals
Ahmed
AhmedOP14mo 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
Accord14mo 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.
Want results from more Discord servers?
Add your server