What is IM's strategy for rounding floats?
Posted: 2018-07-20T13:45:14-07:00
Hi,
I'm trying to understand how IM will round floats when resizing. I've seen a case where I had a resize operation result in an image with a 337.5 height and that got rounded down to 337. I'm not seeing a case where an where a resize results in 119.9877 and that is getting rounded up to 120. I thought IM was basically truncating the floats, but that's not the case.
Any suggestions?
Thanks!
I'm trying to understand how IM will round floats when resizing. I've seen a case where I had a resize operation result in an image with a 337.5 height and that got rounded down to 337. I'm not seeing a case where an where a resize results in 119.9877 and that is getting rounded up to 120. I thought IM was basically truncating the floats, but that's not the case.
Any suggestions?
Thanks!