ahc.util
Class IntHelper

java.lang.Object
  |
  +--ahc.util.IntHelper

public class IntHelper
extends java.lang.Object

Author:
Arno Haase

Constructor Summary
IntHelper()
           
 
Method Summary
static int mod(int a, int b)
          an implementation of the mathematically typical - as opposed to the Java - implementation of the modulus funtion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntHelper

public IntHelper()
Method Detail

mod

public static int mod(int a,
                      int b)
an implementation of the mathematically typical - as opposed to the Java - implementation of the modulus funtion. For "a mod b", this implementation returns a number c such that
This differs from the usual Java implementation of a % b which returns negative numbers for negative a.