Round without using round command in visual basic? - what are the commands for visual boy
I'm in a programming language class very basic computer skills. We currently use Visual Basic 6.0. My teacher has the task of a program that completes assigned a number without using the current round () command. He said the MOD () command, but has no details. Can anyone suggest what might be done? Thanks to all who respond!


1 comment:
There are two parts to this ...
The first is the \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ operators, in contrast to the operator /, then returns all results, including:
myInt = 14 \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ 10
myInt have a value of 1
The Mod operator, gives the other the rest of the division, for example:
myRemainder = 14 mod 10
be myRemainder 4th
What should I do to create a function that returns the remainder of dividing a number (perhaps the loneliest?) Increased And the whole point if the rest is greater than a certain value.
Hopefully this is enough details for you as you are writing about the number of the task would follow defeat;)
Post a Comment