From 6fcb5ca46927f7baab744e117af9eb1ce5b74838 Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Sun, 9 Feb 2025 06:05:05 +0100 Subject: [Dice] add functions: floor, ceil, round --- HelpMe.md | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'HelpMe.md') diff --git a/HelpMe.md b/HelpMe.md index 6c75022..251f61a 100644 --- a/HelpMe.md +++ b/HelpMe.md @@ -429,7 +429,7 @@ Merge operator is used for gathering several dice rolls from different die type This command merges together the result from the d6 and the d8. Then, it applied the k operator on both result to keep the best. Be careful, this operator merges the instruction list. Instruction reference (such as $1 etc..) won't work after merge operator. -### Spead +### Spread It makes exploded dice as new dice. The operator is trigged by *y*. @@ -439,7 +439,7 @@ The operator is trigged by *y*. ``` First Result: `10 [6, 4], 3, 3, 2` -Result after spead: `6, 4, 3, 2` +Result after spread: `6, 4, 3, 2` Final result: `6+4+3 = 13` ### All the same @@ -657,6 +657,39 @@ Output: Attention! Be careful, `repeat` works badly with multiple instruction commands + +### Floor + +* 15/7 = 2.14286 +* Floor(15/7) = 2 + +The command: + +> 15/7;**floor($1)**;ceil($1);round($1) + +> result: 2.14286,**2**,3,2 + +### Ceil + +* 15/7 = 2.14286 +* Ceil(15/7) = 3 + +The command: + +> 15/7;floor($1);**ceil($1)**;round($1) + +> result: 2.14286,2, **3** ,2 + +### Round + +* 15/7 = 2.14286 +* Round(15/7) = 2 + +The command: + +> 15/7;floor($1);ceil($1);**round($1)** + +> result: 2.14286,2,3, **2** ## The output DiceParser provides features to let you control the command output. -- cgit v1.2.3-70-g09d2