C# Class System.Globalization.CCMath

A class that provides mathematical functions.

We are breaking the .Net naming conventions to be compatible to the "Calendrical Calculations" bool.

Afficher le fichier Open project: runefs/Marvin Class Usage Examples

Méthodes publiques

Méthode Description
amod ( double x, double y ) : double

An adjusted remainder function as defined in "Calendrical Calculations".

amod ( int x, int y ) : int

The adjusted remainder functions for integers as defined in "Calendrical Calculations".

div ( int x, int y ) : int

The static method divides two integers.

Please notify that the function is not compatible to the standard integer divide operation /.

div_mod ( int &remainder, int x, int y ) : int

A static method that combines integer division and remainder computation.

mod ( double x, double y ) : double

A static method that computes the remainder of the division of two doubles.

mod ( int x, int y ) : int

The static method computes the remainder of two integers.

Please notify that the method is not compatible to the C# remainder operation %.

round ( double x ) : double

A static method which rounds a double value.

signum ( double x ) : int

A static method returning the sign of the argument.

signum ( int x ) : int

A static method returning the sign of the integer argument.

Method Details

amod() public static méthode

An adjusted remainder function as defined in "Calendrical Calculations".
public static amod ( double x, double y ) : double
x double The double x argument.
y double The double y argument, the divisor.
Résultat double

amod() public static méthode

The adjusted remainder functions for integers as defined in "Calendrical Calculations".
public static amod ( int x, int y ) : int
x int The integer argument to be divided.
y int The integer divisor argument.
Résultat int

div() public static méthode

The static method divides two integers.
Please notify that the function is not compatible to the standard integer divide operation /.
public static div ( int x, int y ) : int
x int The integer x value.
y int The integer y value.
Résultat int

div_mod() public static méthode

A static method that combines integer division and remainder computation.
public static div_mod ( int &remainder, int x, int y ) : int
remainder int Remainder integer output value. ///
x int Integer to be divided.
y int Divisor integer value.
Résultat int

mod() public static méthode

A static method that computes the remainder of the division of two doubles.
public static mod ( double x, double y ) : double
x double The double value which is divided.
y double The divisor.
Résultat double

mod() public static méthode

The static method computes the remainder of two integers.
Please notify that the method is not compatible to the C# remainder operation %.
public static mod ( int x, int y ) : int
x int The integer value which will be divided.
y int The divisor integer value.
Résultat int

round() public static méthode

A static method which rounds a double value.
public static round ( double x ) : double
x double The double value to round.
Résultat double

signum() public static méthode

A static method returning the sign of the argument.
public static signum ( double x ) : int
x double The double argument.
Résultat int

signum() public static méthode

A static method returning the sign of the integer argument.
public static signum ( int x ) : int
x int The integer argument.
Résultat int