I have a decimal field that holds a percentage value, such as 37.5 or 62.5
I convert that to an integer to remove the decimals. However, it isn't rounding up and down properly when it is .5
37.5 rounds up to 38.
62.5 rounds down to 62.
87.5 rounds up to 88.
Everything else works as expected.
Anyone know why this is and how to fix it?