WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   PI-Function @ VC-Studio (http://www.wcm.at/forum/showthread.php?t=121594)

belli_m 10.01.2004 17:14

PI-Function @ VC-Studio
 
hey leute

folgendes problem...tät gern die pi-function in c++ verwenden,jedoch in visual studio.net umgebung. bisher hat dies ja bekanntlich einfach mit "M_PI",sofern die math.h eingebunden war funktioniert. Dies ist jedoch scheinbar im .net nicht mehr der fall. irgendeine lösung bekannt?

käptn 10.01.2004 17:53

.NET Framework-Klassenbibliothek

Math.PI-Feld

Anforderungen
Plattformen: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

Sprache
C#, C++, JScript, Visual Basic


Stellt das Verhältnis eines Kreisumfangs zum Kreisdurchmesser durch die Konstante Pi dar.

[Visual Basic]
Public Const PI As Double
[C#]
public const double PI;
[C++]
public: const double PI;
[JScript]
public var PI : double;

Hinweise
Der Wert dieses Feldes ist 3,14159265358979323846.

Siehe auch
Math-Klasse | Math-Member | System-Namespace

~

Who-T 11.01.2004 09:32

http://msdn.microsoft.com/library/de...hconstants.asp


To use these math constants, you have to define _USE_MATH_DEFINES in addition to #including math.h.

belli_m 11.01.2004 16:47

Vielen Dank Leute... hat funktioniert!

mfg mario


Alle Zeitangaben in WEZ +2. Es ist jetzt 12:31 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag