//prints 3.1415926535898
print(M_PI. "
\n");
?>
double pow(double base, double power)
Use the pow function to raise the base argument to the power indicated by the second
argument.
<?
//print 32
print(pow(2, 5));
?>
double rad2deg(double angle)
The deg2rad function returns the degrees that correspond to given radians specified in
the angle argument.
<?
//print 90.00021045915
print(rad2deg(1.5708));
?>
double round(double value)
The round function returns the argument rounded to the nearest integer.
<?
//prints 1
print(round(1.4). "
\n");
//prints 1
print(round(1.5). "
\n");
//prints 2
print(round(1.6). "
\n");
?>
double sin(double angle)