Hi Mark,
De : Mark Schafer <mschafer@...2596...> FWIW I'd like to ask if this helps with the accuracy issue. Specifically I find that numbers only get one decimal point in the spinner control for floats. I.e. The spinner cannot get me 1.35, 1.36 it can only get me 1.3, 1.4 Also sometimes the returned value for 0 is not 0 exactly. So I need to add a check for if val< 0.01: val = 0 so the rest of my code works properly if a 0 value means a change in behaviour. (e.g. roundness of a border = 0 implies use a rect instead of a nice curve.)
You can set the precision attribute in the float and integer elements (INX file). The default value is 1, but you can set it to 2 if you want two digits after the point.
Example: <param name="prec1" type="float" gui-text="precision1:">2.35</param> --> 2.3 <param name="prec2" type="float" precision="2" gui-text="precision2:">2.35</param> --> 2.35
Note that the precision attribute doesn't change the spinner and mouse increment step (still 0.1).
Regards. -- Nicolas