DEC

DEC decrements a number by 1.

Function category: Statistical

Syntax

DEC(arg1)

Arguments

Description

arg1

A number, string or an array of numbers or strings (or anything that can be coerced into being a number).

Examples

Example 1: Decrement a price value by 1

Given the following attribute in findEnginebyId:

findEngineByID.body.price = 4800

We want to decrement the price value by 1, we can use DEC :

DEC(findenginebyid.body.price)

This results in the following:

4799