Use something like
Code:
program: format_number(divide(raw_field('#words'), 250), '{:0.2f}')
with the appropriate changes for your variables and the number of decimals you want. You need to use raw_field if #words has a template that converts it into a string.