Skip to main content link. Accesskey S

XPages Wiki

Submit Search

YouAtNotes XPages Wiki


Home > Server JavaScript > Work with numbers / math

Work with numbers / math

ShowTable of Contents

Convert a string to a number


var s = new Number(n)

Round to n decimals


You can round a number with
Math.round(number)


Rounding to for example 3 decimals:

Math.round(number * 1000) / 1000

Integer division


Math.floor(number / 2)


Returns only the integer part of a division.
Use  searchlotus.com  for news in the Web related to Lotus Notes and Domino,
and to search those sites.
Check  youatnotes.com  for great Lotus Notes, Domino and XPages software.
Did this wiki help you?
Did this saved you time? Express your gratitude by making a donation:
PayPal - The safer, easier way to pay online!