Difference between revisions of "MC-Basic:INT"

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:MC-Basic:INT to MC-Basic:INT: Global renaming of Axystems: namespace into (Main):)
Line 44: Line 44:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:SIN|SIN]]
+
* [[MC-Basic:SIN|SIN]]
  
 
[[Category:Axystems:MC-Basic:Arithmetic Functions|INT]]
 
[[Category:Axystems:MC-Basic:Arithmetic Functions|INT]]
  
 
}}
 
}}

Revision as of 08:40, 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

See Also