ratweights can currently only be integers, but there is
no check for this:
ratweight(x,1.5); -- no error
ratweight(y,3/2); -- no error
rat(p),ratwtlvl:1 => 0
rat(p),ratwtlvl:2 => 0
rat(p),ratwtlvl:10 => 0
rat(p),ratwtlvl:100 => 0
ratweight should give an error if the weight isn't integral.
Alternatively, fractional (rat and float) weights could be
supported. It wouldn't be that hard, though there would
be a bit of a performance hit. Most ratweight
manipulation is in ratout/wtptimesXXX, and uses f*. It
could use * or even MUL instead.
Log in to post a comment.