How to get mathemical PI constant in Swift

前端 未结 3 1802
梦如初夏
梦如初夏 2020-11-30 00:03

I am trying to find a way to include the PI constant in my Swift code. I already found help in another answer, to import Darwin which I know gives me a

3条回答
  •  有刺的猬
    2020-11-30 00:34

    import Darwin is not needed all M_x are visible with the import Foundation

    ( Xcode Version 6.4 (6E35b) )

提交回复
热议问题