Exportar (0) Imprimir
Expandir todo
div
eof
Expandir Minimizar

labs

Calculates the absolute value of a long integer.


long labs(
      long n 
);

Parameters

n

Long-integer value.

The labs function returns the absolute value of its argument. There is no error return.

Routine Required header Compatibility

labs

<stdlib.h> and <math.h>

ANSI, Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

For additional compatibility information, see Compatibility in the Introduction.

All versions of the C run-time libraries.

See the example for abs.

Adiciones de comunidad

AGREGAR
Mostrar:
© 2014 Microsoft