[{quoted}](name=I Follow Christ,realm=NA,application-id=LqLKtMpN,discussion-id=7jcf93nr,comment-id=00070000,timestamp=2018-01-30T04:20:44.007+0000)
Yes, hence the topic title. "Someone is using a float when they should be using an int!"
If it was declared in the code as an integer, then there would be nothing to round, and nothing to truncate.
There may be advantages to having it stored as a float. First off, it will usually result in a decimal when you take 0.4 or 0.7 and multiply it with an item gold value. If you ALWAYS truncate then you are losing information, which might be useless information but it might not. I can't think of a reason that the truncation error would matter, but it might somewhere some place.
Also, any further math may not compile depending on what language you use. Some languages do not allow ints to be used in methods which expect floats without explicit casting, so it might be easier to always have all gold values as floats and just display it on the UI as a rounded or truncated integer. So if they changed that 0.4 * item value to an int, they may need to go 100 other places in the code and add promote it to a float anyways