Allow percentages to be decimal rather than integer

#9