iphone - converting float to integer
Posted
by Mike
on Stack Overflow
See other posts from Stack Overflow
or by Mike
Published on 2010-03-15T21:03:56Z
Indexed on
2010/03/15
21:09 UTC
Read the original article
Hit count: 449
This is a simple question:
Is this a correct way to get an integer part from a float division?
int result = myFloat / anInteger;
this is working, but I am not sure if it is the best way.
thanks for any help.
© Stack Overflow or respective owner