Total Pageviews

Wednesday, April 9, 2014

math.deg

Math.deg()
គេប្រើសំរាប់បំលែង តំលៃពី Radians ទៅកាន់ Degrees
Syntax: math.deg (x)
X(តំរូវការ) វាជាចំនូនលេខដែលជា Angle នៅក្នុង Radians
សូមមើលកូដះ
print(math.deg(math.pi))        ---> 180
print(math.deg(math.pi / 2))    ---90
print(math.rad(180))            ---3.1415926535898


No comments:

Post a Comment