I have a <input type="number"> and I want to restrict the input of the users to purely numbers or numbers with decimals up to 2 decimal places. When showing an order confirmation, is there a way to automatically have the system default to two decimal places?Yes, you can, and should according to most Mathematicians. ∴ The ratio of rotten oranges to fresh oranges in decimal form is 0.025. Example 3: There are 36 fruits in a basket. The results are always shown in a value with 16 decimal points (Pic. Go to the question's Settings. Go to Validation Criteria and choose the Manually enter your validation logic in XLSForm code option. Form Operators and Functions. Expressions in calculations, constraints, and relevants can contain operators and functions.