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

(Parameters)
(Parameters)
Line 9: Line 9:
 
* '''N''' = The number you want the integer part of
 
* '''N''' = The number you want the integer part of
  
You can use the letter 'e' as *10^N, $int(5e6) = $int($calc(5*10^6))
+
You can use the letter 'e' or 'l' as *10^N, $int(5e6) = $int($calc(5*10^6))
  
 
== Properties ==
 
== Properties ==

Revision as of 22:42, 12 August 2018

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

Synopsis

$int(N)

Parameters

  • N = The number you want the integer part of

You can use the letter 'e' or 'l' as *10^N, $int(5e6) = $int($calc(5*10^6))

Properties

None

Example

//echo -a $int(1.9)

will return 1, the integer part

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

[Expand]
v · d · e mIRC identifier list