resource requirement to be a decimal rather than a number

I have a resource which needs to allocate in decimal like 2.5