Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   Misc

   Amazon

   Links

    


Degrees / radians conversions

 


A couple of functions for converting from degrees to radians and from radians to degrees

Firstly here are our two functions

<?php
//degrees to radians function
function DegToRad($degrees)
{
return $degrees * 3.14 / 180;
}
//radians to degrees conversion
function RadToDeg($radians)
{
return $radians * 180 / 3.14;
}
?>

and here is our code to test these functions

<?php
//testing our functions with some values
echo DegToRad(90);
echo "<br>";
echo RadToDeg(0.707);
?>

 

 

 

 

 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
File size example(C)
Delete a file using Delete instance method on the FileInfo class(C Sharp)
connect to internet using DUN(VB)
horizontal scrolling text(Blitzbasic)
Temperature Conversion(ASP)
renames your computer(VB)
move a file with MoveTo(C Sharp)
Pause an app(VB)

    




Copyright © 2003 by programmershelp.co.uk