java - Want to divide long (huge file size in TBs) by some number (huge
int) and safely get an int
I want to divide long (huge file size in TBs) by some number (huge int)
and safely get an int. But with the type conversion properties both int
becomes long and the result is long. I'm sure my quotient will be an int,
is casting ok or please direct me to a better solution.
No comments:
Post a Comment