MathNCeilingTNumeric Method

Returns the smallest integral value that is greater than or equal to the specified number.

Definition

Namespace: Jodosoft.Numerics
Assembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static TNumeric Ceiling<TNumeric>(
	TNumeric x
)
where TNumeric : struct, new(), INumeric<TNumeric>

Parameters

x  TNumeric
A number.

Type Parameters

TNumeric

Return Value

TNumeric
The smallest integral value that is greater than or equal to x.

Remarks

This method may return NaN or Infinity. If NaN or Infinity cannot be represented by TNumeric, then this method may throw an ArithmeticException.

See Also