Background
I am doing a small function that takes a few parameters. One such parameter is a float()
that must be <= 0
.
Now, if this was an integer I would simply use neg_integer()
from the typespecs.
However, I am using a float()
instead. Unfortunately there is no neg_float()
typespec that I could find.
Question
Is there a possible way of having a neg_float()
typespec, that would only accept float <= 0
?