Difference between revisions of "MC-Basic:INT"
(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 …') |
|||
(7 intermediate revisions by 4 users not shown) | |||
Line 4: | Line 4: | ||
|SYNTAX= | |SYNTAX= | ||
− | Int('' | + | Int(<''expression''>) |
|AVAILABILITY= | |AVAILABILITY= | ||
Line 13: | Line 13: | ||
|TYPE= | |TYPE= | ||
− | '' | + | <''expression''>: Double |
− | '' | + | <''return value''>: Long |
|RANGE= | |RANGE= | ||
Line 30: | Line 30: | ||
|LIMITATIONS= | |LIMITATIONS= | ||
− | Read | + | Read only |
|EXAMPLE= | |EXAMPLE= | ||
Line 44: | Line 44: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:SIN|SIN]] |
+ | [[Category:MC-Basic:Arithmetic Functions|INT]] | ||
}} | }} |
Latest revision as of 09:12, 22 May 2014
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