AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgk.Modulus Method (Integer, Integer)

Returns the remainder of the integer division A/B.

Syntax
Pascal
class function Modulus(const A: Integer; const B: Integer): Integer; overload; static;
Parameters 
Description 
const A: Integer 
The numerator 
const B: Integer 
The denominator 

The remainder

Raises an exception when B is negative.

Copyright (c) 2012. All rights reserved.