Thursday, July 10, 2014

int vs float

If you divide two ints that should have a quotient of a float, Ruby will just truncate the decimal position. You must recast one or both as floats.

No comments:

Post a Comment