CInt Function [Runtime] /text/sbasic/shared/03100500.xhp Sun Microsystems, Inc. converted from old format - fpe
CInt function CInt Function [Runtime] Converts any string or numeric expression to an integer.
Syntax: CInt (Expression) Return value: Integer Parameters: Expression: Any numeric expression that you want to convert. If the Expression exceeds the value range between -32768 and 32767, $[officename] Basic reports an overflow error. To convert a string expression, the number must be entered as normal text ("123.5") using the default number format of your operating system. This function always rounds the fractional part of a number to the nearest integer. Example: Sub ExampleCountryConvert Msgbox CDbl(1234.5678) Msgbox CInt(1234.5678) Msgbox CLng(1234.5678) end sub