Convert degree to Radians : Math « Dojo toolkit « JavaScript DHTML






Convert degree to Radians

 

<html>
  <head>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/",
        parseOnLoad : true
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
      dojo.require("dojox.math._base");
      
      function testIt() {
        var s = dojox.math.degreesToRadians(90);
        alert(s)

      }
    </script>
  </head>
  <body onLoad="testIt();">
  </body>
</html>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category

1.Get mid point
2.Get range
3.Get gaussian random number
4.Convert radian to degree
5.Math.standard deviation
6.Calculate distance for two points