You could just use a cast to an int
like so:
int integerNumber = (int) yourFloat;
4
solved How do I convert float to integer? [duplicate]
You could just use a cast to an int
like so:
int integerNumber = (int) yourFloat;
4
solved How do I convert float to integer? [duplicate]