The Lang and Float Libraries

The Lang and Float Libraries are similar in that both contain several functions designed to perform various types of arithmetic operations. The main differences between these libraries are as follows:

  • The Lang functions calculate numbers without decimals (integer numbers).

  • The Float functions calculate numbers with decimals (floating-point numbers).

Working with arithmetic calculations usually requires a significant amount of processing power from the device performing the operations. Because of that, the functions within these libraries are not frequently used.

As you’ll find in your development efforts, calculations of data are best performed on a server.

This is not to say that WAP applications never have a need ...

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.