Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

Abs- Returns the absolute value of a number

Function that returns the absolute value of a number.

- Abs(N): num


- (num) N: number.


Use the Abs function to derive the absolute value of a number. The N number can be integer or floating point.


Calculates the absolute distance between two coordinates

X1 = 5

X2 = 90

D = Abs(X1-X2)

// Variable D will always contain the value 85, also exchanging the order of the operands