Reference sub()

sub()

Subtract the given number from the value currently stored at the given key. The difference then replaces the value previously stored in the Dictionary.

Examples

Syntax

sub(Key, Number)

Parameters

Key

for the value you wish to subtract from

Number

to subtract from the value

Notice any errors or typos? Please let us know. Please feel free to edit src/data/p5.TypedDict.js and open a pull request!

Related References