Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

Decrement

Format: --x
x
--

Arguments: (node) x Name of an existing node, variable, object property, or list element

Returns: (num) x-- returns the value of x
--x returns the value of x minus one

Description: Both x-- and --x decrement the value of x by one. However, x-- returns the value of x before it was decremented while --x returns the value after it is decremented.

Examples: var x=5; = x = 5

y=x-- = x = 4 and y = 5

var x=5; = x = 5

y=--x = x = 4 and y = 4

See Also: Increment, Subtract

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend