This is an automated email from the ASF dual-hosted git repository.

tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new ca7f61d06f7 kie-issues#2033: Single parameter rounding function on 
FEEL (#3209)
ca7f61d06f7 is described below

commit ca7f61d06f71bbe43e328adcc90af76c8dae17d0
Author: Aswathi <[email protected]>
AuthorDate: Mon Jul 21 21:58:36 2025 +0530

    kie-issues#2033: Single parameter rounding function on FEEL (#3209)
---
 packages/feel-input-component/src/FeelConfigs.ts | 28 ++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/packages/feel-input-component/src/FeelConfigs.ts 
b/packages/feel-input-component/src/FeelConfigs.ts
index 847adede629..cd414a19a91 100644
--- a/packages/feel-input-component/src/FeelConfigs.ts
+++ b/packages/feel-input-component/src/FeelConfigs.ts
@@ -1259,6 +1259,13 @@ export const feelDefaultSuggestions = (): 
Monaco.languages.CompletionItem[] => {
           "round down( -1.126, 2 ) = -1.12",
         ],
       },
+      {
+        label: "round down(n)",
+        insertText: "round down($1)",
+        description: "Returns `n` with rounding mode round down. If `n` is 
null, the result is null.",
+        parameters: [["n", `\`number\``]],
+        examples: ["round down( 5.5) = 5", "round down( -5.5) = -5"],
+      },
       {
         label: "round half down(n, scale)",
         insertText: "round half down($1, $2)",
@@ -1275,6 +1282,13 @@ export const feelDefaultSuggestions = (): 
Monaco.languages.CompletionItem[] => {
           "round half down( -1.126, 2 ) = -1.13",
         ],
       },
+      {
+        label: "round half down(n)",
+        insertText: "round half down($1)",
+        description: "Returns `n` with rounding mode round half down. If `n` 
is null, the result is null.",
+        parameters: [["n", `\`number\``]],
+        examples: ["round half down( 5.5) = 5", "round half down( -5.5) = -5"],
+      },
       {
         label: "round half up(n, scale)",
         insertText: "round half up($1, $2)",
@@ -1291,6 +1305,13 @@ export const feelDefaultSuggestions = (): 
Monaco.languages.CompletionItem[] => {
           "round half up( -1.126, 2 ) = -1.13",
         ],
       },
+      {
+        label: "round half up(n)",
+        insertText: "round half up($1)",
+        description: "Returns `n` with rounding mode round half up. If  `n` is 
null, the result is null.",
+        parameters: [["n", `\`number\``]],
+        examples: ["round half up(5.5) = 6 ", "round half up( -5.5) = -6"],
+      },
       {
         label: "round up(n, scale)",
         insertText: "round up($1, $2)",
@@ -1307,6 +1328,13 @@ export const feelDefaultSuggestions = (): 
Monaco.languages.CompletionItem[] => {
           "round up( -1.126, 2 ) = -1.13",
         ],
       },
+      {
+        label: "round up(n)",
+        insertText: "round up($1)",
+        description: "Returns `n` with rounding mode round up. If `n` is null, 
the result is null.",
+        parameters: [["n", `\`number\``]],
+        examples: ["round up(5.5) = 6", "round up(-5.5) = -6 "],
+      },
       {
         label: "sort(list)",
         insertText: "sort($1)",


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to