Swift returning 0 on division

前端 未结 0 1858
忘了有多久
忘了有多久 2021-02-01 02:09

I\'m trying to do basic division and it always returns 0 as an answer.

let mathStuff = Double((stepCount / Level.expRequired())) * 100
print ("\\(totalSteps)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题