Several posts in this thread about doing the math in the PLC, and that is the way I would go......
But watch out for the different ROUNDING method used in Logix5000 (ControlLogix, CompactLogix, etc.).
MicroLogix uses the "traditional" 0.5 and above = Round Up....
Logix5000 uses "round to even" method when the math result is exactly xxx.5
Examples (NB a simple MOV instruction shows this):-
MicroLogix - MOV, 2.5, N7:0 - N7:0 would be 3, result is rounded UP
Logix5000 - MOV, 2.5, A_DINT - A_DINT would be 2, result is rounded to nearest even number
BUT :
Logix5000 - MOV, 1.5, A_DINT - A_DINT would also be 2, result is rounded to nearest even number
"forcing" rounding down (or up), is therefore no longer simple in Logix5000 platforms.