Issue 23525 - force integer entry for non-fractional item

I think there may be other older commits on this PR because I may have an older personal fork. Those commits may already be merged into 4_7_x.  My commit is the last of the three, related to a proposed fix for #23525.