Core Function Distance

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> Distance( <value1>, <value2> ) </pre> === Description === Calculates the absolute value of the difference of two values. === Parameters === ==== value1 ==== Source val...")
 
m (1 revision)

Revision as of 21:41, 11 August 2014

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