Creating Mathematical Functionality with the Arithmetic Operators

When you think of the word “operator,” the idea of mathematical functionality might first pop into your head. The reason for this isn’t coincidence— most operations that occur in applications are of a mathematical nature. WAP applications are no exception.

To provide mathematical functionality, WMLScript provides several arithmetic operators. Arithmetic operators provide some capability to perform calculations, always take numerical values as their operands, and return a single numeric value.

Many of the arithmetic operators should be familiar to you (drudging up those terrible days of junior high math—sorry to have to do that to you). The most common arithmetic operators are ...

Get WAP 2.0 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.