Computer Programming In Basic
computer programming in basic

Round Round commands used in Visual Basic?
I'm in a class of very basic computer programming. Currently, we are using Visual Basic 6.0. My professor assigned the task of creating a program to round a number without using the current round () command. He said the MOD () command, but did not report more information. Can anyone suggest how this could be? Thank you to all who respond!
There are two parts to this … The first is the operator, unlike the / operator, simply return the full value of the result, eg MyInt = 14 10 MyInt have a value of 1. Mod operator will instead return the rest of the division, for example myRemainder myRemainder = 14 mod 10 is 4. What you need do is create a function to return the remains of a division by a number (perhaps lonliest?) and increase the whole number if the remainder is greater a certain value. Hopefully this is enough for you to continue as no detail, as I am writing to you, which would defeat the point the task;)