How come CInt(750 / 100) = CInt(850 / 100)?

They both equal 8...how is that possible? and how would i emulate this weird formula evaluation in C++?

I'm trying to convert some VB code (that works perfectly) to C++ and this is a bug I tracked down. C++ evaluates static_cast<long>(750 / 100) = 7, static_cast<long>(850 / 100) = 8