Abs

Формат

abs ( выражение )

Описание

Возвращает абсолютное (неотрицательное) числовое значение выражения.

Пример

print abs(-45)
print abs(6.45)

будет выводить

45
6.45
 
ru/abs.txt · Last modified: 2010/07/01 06:40 by lamp
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki