1. Home
  2. Computing & Technology
  3. Delphi Programming
Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back

Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
 

GradToDeg

unit
Math
category
Measurement Conversion Routines

declaration
function GradToDeg(const Grads: Extended): Extended;

description
Convert angles expressed in grads to the value in degrees.

example
var
 deg0, deg100, deg200, deg300 : extended;
begin
  deg0 := GradToDeg(0); // == 0
  deg100 := GradToDeg(100); // == 90
  deg200 := GradToDeg(200); // == 180
  deg300 := GradToDeg(300); // == 270

end;

in real code

see also
DegToGrad,


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?
Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.