Login
Sign Up
Home
Program
Project
My Zone
Support
Show Code
Browse Program
Search Program
Angle Converter - convert degree, radian, grad, minute, second
Input Variables
Output Variables
Program Code
Description
Variable Name *
(dynamic type)
*
!
UP
Down
Delete
Default Value *
*
Description *
*
Multi Lines
Variable Name *
(string type)
*
!
UP
Down
Delete
Available Values *
Radian Grad Degree Minute Second
*
Default Value *
*
Description *
*
Variable Name *
(string type)
*
!
UP
Down
Delete
Available Values *
Radian Grad Degree Minute Second
*
Default Value *
*
Description *
*
Variable Name *
(dynamic type)
*
UP
Down
Delete
Description *
*
Input Variables List
Output Variables List
Source Code
double degree=0; switch(From) { case "Radian": degree=input*180/Math.PI; break; case "Grad": degree=input*180.0/200; break; case "Degree": degree=input; break; case "Minute": degree=input/60.0; break; case "Second": degree=input/3600.0; break; } double radian=degree*Math.PI/180; double grad=radian*200/Math.PI; double minute=degree*60; double second=degree*3600; output=0; switch(To) { case "Radian": output=radian; break; case "Grad": output=grad; break; case "Degree": output=degree; break; case "Minute": output=minute; break; case "Second": output=second; break; }
Subject
Description
You can convert any angle (for example degree, radian, grad, minute, second, sign etc.) to any other angle by using this Angle Converter. Popular units are listed at the top followed by the other units.
Category
Mathematics
Created By
tech
Created Date
1/6/2011
Last Modify Date
1/23/2012
Calculation Count
79
Version
1.00
Positive
0
Neutral
0
Negative
0
Related Program ID
138
Copyright ©2009-2010 CUI WEI. All Rights Reserved.