01.09.2014 Views

WM Basic™ User's Manual - Classes

WM Basic™ User's Manual - Classes

WM Basic™ User's Manual - Classes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

288 Working Model Basic <strong>User's</strong> <strong>Manual</strong><br />

Syntax<br />

Description<br />

Comments<br />

Example<br />

See Also<br />

Platform(s)<br />

Int(number)<br />

Returns the integer part of number.<br />

This function returns the integer part of a given value by returning the first<br />

integer less than the number. The sign is preserved.<br />

The Int function returns the same type as number, with the following<br />

exceptions:<br />

If number is Empty, then an Integer variant of value 0 is returned.<br />

If number is a String, then a Double variant is returned.<br />

If number is Null, then a Null variant is returned.<br />

'This example extracts the integer part of a number.<br />

Sub Main()<br />

a# = -1234.5224<br />

b% = Int(a#)<br />

MsgBox "The integer part of -1234.5224 is: " & b%<br />

End Sub<br />

Fix (function); CInt (function).<br />

Windows and Macintosh.<br />

Integer (data type)<br />

Syntax<br />

Description<br />

Comments<br />

See Also<br />

Platform(s)<br />

Integer<br />

A data type used to declare whole numbers with up to four digits of precision.<br />

Integer variables are used to hold numbers within the following range:<br />

–32768

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!