How do I do casting in Scala?

前端 未结 0 1606
自闭症患者
自闭症患者 2021-02-11 12:59

For example suppose I have

val myDouble = 25.7
val myInt = 5

How would I do something like

val divide = (Int) (myDouble / myInt         


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