From WikiChip
Difference between revisions of "mirc/identifiers/$int"
< mirc‎ | identifiers

(Created page with " {{mirc title|$int Identifier}}'''$int(number)''' Returns the integer part of a floating point number with no rounding. == Synopsis == <source lang="mIRC"> $int(N)</source>...")
 
(Paramters)
Line 9: Line 9:
 
== Paramters ==
 
== Paramters ==
  
'''N (number)''' = ''Will be the given number that you want to use for.''
+
* '''N''' = The number you want the integer part of
  
 
== Properties ==
 
== Properties ==

Revision as of 08:58, 12 June 2017


$int(number) Returns the integer part of a floating point number with no rounding.

Synopsis

$int(N)

Paramters

* N = The number you want the integer part of

Properties

None

Example

//echo -a $int(1.99999999999999)

It will return 1 because it's integer the given number value.

//echo -a $int(1.9999999999999999)

It will return 2 because it's integer the given number value.

Compatibility

Added: mIRC v5.1
Added on: 28 Aug 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also