VBA/Excel/Access/Word/Data Type/Int

Материал из VB Эксперт
Версия от 12:48, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Int(- returns -4

 
Sub mathDemo8()
   Debug.Print Int(-3.14159)
End Sub



Int(number) returns The integer portion of number (again, without rounding). If number is negative, returns the negative number less than or equal to number.

 
Sub mathDemo7()
   Debug.Print Int(3.14159)
End Sub



Int() Returns the integer portion of a number.

 
Sub mathF4()
    Debug.Print Int(-9.1)
End Sub