#Calculation in Wrong Format
18 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @fast forge! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
can you show the calculation ?
You want to cast to int or 5o double ?
I don't want it to cast at all.
Oh, shoot, I sent the wrong thing.
mHeight = (int)(mHeight*10) / 10;
Specifically, double mHeight = (int)(mHeight*10) / 10;
I want to round it to the tenths.
Shoot, should I have made the bottom number a double?
*denominator
Yeah so Math.round((mHeight*10)/10f)