Actually I think I solved my second question, using

Number(txtValueInput.text)   instead of   txtValueInput.text as Number

The first one doesn't round off the value.  I'm not sure why these are
evaluated differently.


Reply via email to