Autor Beitrag
Jakob Schöttl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 929
Erhaltene Danke: 1


Delphi 7 Professional
BeitragVerfasst: Sa 15.09.07 12:55 
Hallo,

ich bin neu in C allgemein, und lerne grad C++. Ich hoffe ich darf hier trotzdem eine kleine Frage stellen zu C++:

in Delphi gibt es Funktionen wie Round, Floor, Ceil, Abs, Frac, ...
gibt es soche Funktionen auch in C++, und wenn, in welcher Header-Datei.

In meinem Fall suche ich
ausblenden C#-Quelltext
1:
float Frac(float f)					
, die Funktion soll die Nachkommastellen zurückgeben, zB. bei f = 3.56 -> return 0.56


Zuletzt bearbeitet von Jakob Schöttl am Sa 15.09.07 12:57, insgesamt 1-mal bearbeitet
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 15.09.07 12:57 

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.