module division the % sign
hey this isnt an exact C++ question but i wasnt sure where to put it im actually doing something for visual basic for school but the principle should be the same
im trying to get the remainder of something im dividing and i thought it was the use of the % sign or MOD in vb but ive noticed MOD isnt giving back the remainder
i noticed google's calculter doesnt do it either
so how in programming would i get back the remainder i thought it was the module division operator?
250000 % 507 gives back 49 but if you divide it by 507 is 493.0966 etc. why is this? since mod or % should work the same in all langauges i figure its related C++ enough and this board gets the most looks so sorry if its not about C++ directly maybe but it could be.