Autor Beitrag
CrOc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

Win XP
D5 Standard
BeitragVerfasst: Sa 31.01.04 16:55 
hi,
wie kommt das Delphi einen ander Sinuswert nicht den richtigen Wert anzeigt.
Der Sinus von 30° ist nie -0,988031624092862 ...
tomtom62
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 278

WIN 2000, XP prof
D5 prof.
BeitragVerfasst: Sa 31.01.04 17:46 
Auszug aus der Hilfe

Die Funktion Sin berechnet den Sinus eines Winkels.

Zitat:
function Sin(X: Extended): Extended;

Beschreibung

Sin gibt den Sinus des mit X angegebenen Winkels im Bogenmaß (Rad) zurück.


Achte auf das rote im Text.. :wink:
flowstar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 123

WinME
D6 Enterprise
BeitragVerfasst: Sa 31.01.04 18:08 
du musst den wert einfach umrechnen
ausblenden Delphi-Quelltext
1:
a := sin(degtorad(30))					


dann kommt der wert richtig raus