Core Function Distance

From Sputnik Wiki
Jump to: navigation, search
Distance( <value1>, <value2> )

Contents

Description

Calculates the absolute value of the difference of two values.

Parameters

value1

Source value;

value2

Value to check against the source.

Return Value

Distance between the two values

Remarks

None.

Example

say Distance(10, 20); // 10
say Distance(10, 10); // 0
say Distance(20, 10); // 10
say Distance(1, 2); // 1
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox