c++ question
c++ question
- Started
- Last post
- 2 Responses
- g3kk0k1d0
my guess it is giving you the decimal places,
i'm assuming logi is a float value
(long)logi: is typecasting the logi variable to be a whole number,
and by subtracting that from the float value you are getting the decimal places,
example:
logi: 10.202
logi - (long)logi = 10.202 - 10
equals = 0.202
- fugged0
ah. thanks.