int result = 15/2;
is it that result will now be 7 or 7.5. based on my understanding it will be 7. since it is returning an integer. am I correct to say that the .5 will be discarded.
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: andraesatchell Search: Search took 0.04 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |