VBA/Excel/Access/Word/Math Functions/Abs

Материал из VB Эксперт
Перейти к: навигация, поиск

Abs(number) returns The absolute value of number-the unsigned magnitude of the number.

   <source lang="vb">

Sub mathDemo1()

  Debug.Print Abs(-100)

End Sub

</source>
   
  


Abs() Returns the absolute value of a number.

   <source lang="vb">

Sub mathF()

   Debug.Print Abs(-10)

End Sub

</source>