Why does Scala do this when I'm trying to convert from Radians/Degrees and vice-versa?

前端 未结 0 1094
梦毁少年i
梦毁少年i 2021-01-15 03:21

Let\'s assume I have a method that takes in a Int and returns the sin of the input.

def sinTest(x: Int): Double = {
    Math.sin(x)
}
def main(args: Array[Str         


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