• Call Us
  • 360.322.4907 or 610.562.2900

Monday - Friday ( 10.00 - 17.00 EST / 07.00 - 14.00 PST )

What Math Functions are Supported?

The NS Formula module uses a standard math javascript.

Unary Operations
-x Change the sign of x
~x Bitwise NOT x
++x Add 1 to x before using x
x++ Add 1 to x after using x
--x Subtract 1 from x before using x
x-- Subtract 1 from x after using x
Binary Operations
x*y Multiply x by y
x/y Divide x by y
x+y Add x and y
x-y Subtract y from x
x^y x to the Power of y
Mathmatical Functions
abs(x) Change the sign of x
acos(x) Bitwise NOT x
asin(x) Add 1 to x before using x
atan(x) Add 1 to x after using x
atan2(x,y) Subtract 1 from x before using x
ceil(x) Subtract 1 from x after using x
cos(x) Cosine of x
^(x) Exponent of x (Math.E to the power x)
floor(x) Integer Closest to x, Not Greater than y
log(x) Log of a Base x
max(x,y) The Maximum of x and y
min(x,y) The Minimum of x and y
pow(x,y) x to the Power of y
sin(x) Sine of x
sqrt(x) Square Root of x
tan(x) Tangent of x
  • Friday, 21 July 2017

Support is currently

Support Forum

Announcements
  1. 0 subcategories
General / Billing Questions
  1. 0 subcategories
NS FontAwesome Pro
  1. 2 subcategories
Stripe for RSForm Pro
  1. 2 subcategories
Stripe for RSMembership
  1. 2 subcategories
Stripe for RSEvents
  1. 2 subcategories
NS Members Only
  1. 2 subcategories
NS Mail Template
  1. 2 subcategories
Bitcoin for RSForm Pro
  1. 2 subcategories
NS Share Intent for Zoo
  1. 2 subcategories
NS Name Split
  1. 2 subcategories
NS Formula
  1. 2 subcategories
NS MeetUp
  1. 2 subcategories
NS Nerds
  1. 2 subcategories
NS DownloadShop
  1. 2 subcategories
NS Client Credits
  1. 1 subcategory
NS Recipe
  1. 2 subcategories
CiviCRM for RSForm
  1. 2 subcategories
Marysville, WA 98270 United States
(360) 322-4907
Hamburg, PA 19526 United States
(610) 562-2900