G
Guest
In C++, I was able to use this line of code (do not ask what about the object
names--its for a game).
reduce = AtkUnit.Hull / 100;
To get a percentage to porportionally reduce another integer (the idea is
that the integer is reduced to how much HP it has). In VB .NET, however, it
rounds when I use the same line of code (without the semicolon, of course) or
when I use
reduce = AtkUnit.hull \ 100
it automatically rounds to zero (or one) so I dont get the decimal
percentage that I need. Any help? Did I make an error?
names--its for a game).
reduce = AtkUnit.Hull / 100;
To get a percentage to porportionally reduce another integer (the idea is
that the integer is reduced to how much HP it has). In VB .NET, however, it
rounds when I use the same line of code (without the semicolon, of course) or
when I use
reduce = AtkUnit.hull \ 100
it automatically rounds to zero (or one) so I dont get the decimal
percentage that I need. Any help? Did I make an error?