Show / Hide Table of Contents

Method ExtMisc.ToInt(+ 2 overloads)


Overload

Converts to int with rounding. Calls System.Convert.ToInt32.

public static int ToInt(this double t)
Parameters
t  (double)
Returns
int
Exceptions
OverflowException

Overload(next)

Converts to int with rounding. Calls System.Convert.ToInt32.

public static int ToInt(this float t)
Parameters
t  (float)
Returns
int
Exceptions
OverflowException

Overload(top)

Converts to int with rounding. Calls System.Convert.ToInt32.

public static int ToInt(this decimal t)
Parameters
t  (decimal)
Returns
int
Exceptions
OverflowException