Template:Int div

From Guild Wars Wiki 中文站
Revision as of 02:31, 5 February 2009 by gww>Ab.er.rant (sourced from the template I wrote at [http://thewarwiki.com/wiki/Template:Int_div])
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Purpose

Performs integer division as per Java. In other words, the division result ignores any resulting decimals and will not perform rounding.

Usage

  • {{int div|<dividend>|<divisor>}}

Example

  • {{int div|25|10}} results in 2.
  • {{int div|500|100}} results in 5.