Difference between revisions of "MC-Basic:INT"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= Int(''<expression>'') |AVAILABILITY= All versions |DESCRIPTION= This function returns the largest long value less than or equal to a numeric …')
 
m (1 revision)
(No difference)

Revision as of 16:09, 13 December 2010

This function returns the largest long value less than or equal to a numeric expression . ?Int(12.5) returns 12 ; ?Int(-12.5) returns -13

Syntax

Int(<expression>)

Availability

All versions

Type

<expression>:   Double

<return value>: Long

Range

-MaxDouble to +MaxDouble

Scope

Configuration, Task or Terminal

Limitations

Read-Only

Examples

Value = Int(12.5)

?Int(12.5)

--> 12                     ‘returns 12

?Int(-12.5)

-->-13                     ‘ returns -13

See Also