Difference between revisions of "Dice/BuiltinFunctions/Ceiling"

From DiceRoller Documentation
(Created page with "{{APIdoc|BuiltinFunction.Ceiling Method (FunctionContext)}} Computes the ceiling of the argument. {{ns}} == Syntax == <syntaxhighlight lang="C#"> [DiceFunction("ceil", Scope...")
 
(No difference)

Latest revision as of 21:46, 27 April 2017

Computes the ceiling of the argument.

  • Namespace: Dice
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

[DiceFunction("ceil", Scope = FunctionScope.Global)]
public static void Ceiling(
    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.