< Dice | BuiltinFunctions
BuiltinFunction.Floor Method (FunctionContext)
From DiceRoller Documentation
Computes the floor of the argument.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
[DiceFunction("floor", Scope = FunctionScope.Global)]
public static void Floor(
FunctionContext context
)
Parameters
- context
- Type: Dice.FunctionContext
- The context of the function call.
Exceptions
Exception | Condition |
---|---|
DiceException (DiceErrorCode.IncorrectArity) | context.Arguments.Count is not exactly 1. |
DiceException (DiceErrorCode.IncorrectArgType) | context.Arguments[0] is a comparison. |