Programmer's Wiki
Advertisement


Official QBASIC Help[]

ABS Returns the absolute value of a number.

Usage :[]

ABS(numeric-expression)

  • numeric-expression : Any numeric expression.

Example :[]

PRINT ABS(45.5 - 100!) 'Output is: 54.5

See Also[]

  • SGN
Advertisement