<< Prev        Next >>

ID : 232

Int

Function

To return the maximum integer value not exceeding the designated value.

Syntax

Int(number)

Guaranteed entry

number
Designate double precision real number type data.

Return value

Return integer type data.

Description

The maximum integer value not exceeding the designated value is returned.

It is rounding toward minus infinity (RM).

Int(1.5) is "1."

Int(-1.5) is "-2."

Related Terms

Arithmetic Function

 

Attention

-

Example

'!TITLE "Acquiring Maximum Integer Value Not Exceeding Designated Value"
' Acquisition of the maximum integer values of 123.456 and -123.456.
Sub Sample_Int

  ' Display the closest minimum integer values for each, "123" and "-124" on the message output window
  PrintDbg Int( 123.456 ), Int( -123.456 )

End Sub

ID : 232

<< Prev        Next >>