Converts text into a number.
<num {12}> generates the number 12.<num { -3.5 }> generates -3.5.<num {abc}> generates invalid.One or more values to convert, usually text.
None.
Generates the number at the start of each value in the primary field.
<num {12abc}> generates 12, and <num {1e3}> generates 1.<num {x1F}> generates invalid.1 and null generates 0.Text typed into an input box is always text, even if it looks like a number. Convert it with num before calculating or comparing with it. Test the result with <invalid ...> to check the user actually typed a number.
<a:input {0}> + <b:input {0}> = <result:span {0}> <button {Add} onClick=<result | add <num a>, <num b>>>