Windows Forms
.NET Development
Microsoft ISV
Smart Device
SQL Server
Windows Vista
Game Technologies
Visual Basic
VS Express Editions
Visual Studio
Architecture
VS Team System
Visual C++
Visual FoxPro
Windows Live
Software Development Network>> Visual C++>> floating and the modulus operator
floating and the modulus operator
Hot Topic
mbsrtowcs link errors
Justification for forcing 'virtual' for overridden virtual functions
How to draw a circle by mouse drag?
trackBar bug? Visual C++ 2005 Express Beta 2
disappearing CPropertyPage's
C++ Compilation error; very strange?
Using CFont in MFC (Background colors and refresh)
'Long' using 12 bytes rather than 4?
Using a static library when I only have the .lib and .h files
UNREFERENCED_PARAMETER macro
Visual C++
Migrating project from VC++ 6.0 to 8.0
help on API's
C4533 warning, "initialization skipped by goto"
Converting Entered TEXT into integer
C# to C++
Can't create MFC CEditView project.
AFT_EXT_CLASS Query (Urgent!)
Unit testing For C++ code
error C2039 and error C2873
Windows Services Tutorial / Examples
floating and the modulus operator
I need to use a floating variable, and the modulus operator and I can't figure out how to use them together...
if anyone can help me I would greatly appreciate it,
thanks
(I'm only in highschool so I don't know much C++, but I'm trying to learn)
Answer this question
floating and the modulus operator
Gioking
The modulo operator % works only on int's. For float and doubles there is a fmod function in the CRT.
http://msdn.microsoft.com/library/en-us/vclib/html/_crt_fmod.asp
http://msdn2.microsoft.com/library/efa0csed(en-US,VS.80).aspx
floating and the modulus operator
Answer this question
floating and the modulus operator
Gioking
http://msdn.microsoft.com/library/en-us/vclib/html/_crt_fmod.asp
http://msdn2.microsoft.com/library/efa0csed(en-US,VS.80).aspx