Setting pattern in a script
Along with rounding up I'm trying to set a the pattern of a field in a form based on the number entered. I.E. if the field is <10 then use 1 decimal; if 10 or greater use 0 decimals. So basically, if 0.47 is entered it will round to 0.5. Likewise if 2.84, it would round to 2.8. But if 10.85 is entered it would round to 11 and 25.83 would round to 26 because both are greater than 10. Can this be done?

