CLC-3614 Convert decimal to int on the client side

https://jira.ets.berkeley.edu/jira/browse/CLC-3614