policyengine-uk icon indicating copy to clipboard operation
policyengine-uk copied to clipboard

`age` is of type `float` instead of `int`

Open anth-volk opened this issue 1 year ago • 1 comments

The age variable is coded as a float instead of an int, making it a bit challenging on the front end to limit input for this parameter to non-decimal values. This is also in contradiction with core, which has its own age class of type int.

anth-volk avatar Dec 27 '23 00:12 anth-volk

I think we might need non-integer child ages for some childcare programs is that right @vahid-ahmadi?

MaxGhenis avatar Feb 07 '25 19:02 MaxGhenis

Sorry, I missed this issue. The age variable must remain a float because childcare programs require fractional ages for accurate eligibility calculations. Also, the codebase contains some test cases with fractional ages.

I close this issue.

vahid-ahmadi avatar Jul 11 '25 13:07 vahid-ahmadi