The requirement is quite simple, I want something to happen when an interval number could be divided by whole (without decimal). However, the behaviour is not very straight forward. If use INT number, it return an INT ignoring the decimal. If I put float(), the outcome is identified as a float. I thought the INT and FLOAT are used to identify data types, but now it all mix up, INT is float and float is been recognised as an INT.
How could I achieve this function that if value is 18, and 18/5 = 3.6, 3.6 is not an INT(currently it will return 3 as INT). When value is 20, 20/5 = 4, 4 is an INT and something happen? Thank you.
My function code is not working, since INT and FLOAT could not be identified.
var score = 5
var reward = value/float(score)
if typeof(reward) == TYPE_INT:
print("I am INT")