Why does Math.sin() delegate to StrictMath.sin()?

后端 未结 4 677
耶瑟儿~
耶瑟儿~ 2020-12-20 10:56

I was wondering, why does Math.sin(double) delegate to StrictMath.sin(double) when I\'ve found the problem in a Reddit thread. The mentioned code f

4条回答
  •  时光取名叫无心
    2020-12-20 11:46

    Math API permits a non-strict but better-performing implementations of its methods but does not require it and by default Math simply uses StrictMath impl.

提交回复
热议问题