How do I do casting in Scala?

前端 未结 0 1857
一生所求
一生所求 2021-02-11 12:46

For example suppose I have

val myDouble = 25.7
val myInt = 5

How would I do something like

val divide = (Int) (myDouble / myInt         


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