| 1 | [[PageOutline(2-5,Contents)]] |

| 2 | = Another TracFormsPlugin Tutorial = |

| 3 | For basic information see the [wiki:TracFormsPlugin/Starter beginners part]. |

| 4 | |

| 5 | == Simple calculations == |

| 6 | === Single input === |

| 7 | !TracForms don't aim at replacing your pocket calculator. Nevertheless you can do simple calculations with a single input field and !TracForms `sum` operation. Implicit default operation is to sum up all values. It supports arbitrary float precision and reduces results to integer, if possible: |

| 8 | |

| 9 | {{{ |

| 10 | {{{ |

| 11 | #!TracForm |

| 12 | #! submit_label Calculate! |

| 13 | [tf.input:formula 0] = [tf.sum:[tf.value:formula]] |

| 14 | }}} |

| 15 | }}} |

| 16 | |

| 17 | rendered result:[[BR]] |

| 18 | [[Image(forms_example_calc-one-field.png)]] |

| 19 | |

| 20 | === Multiple input fields === |

| 21 | |

| 22 | |

| 23 | ---- |

| 24 | Read even more in the [wiki:TracFormsPlugin/Expert expert section]. |