From 3ee1c41ac72aaae9f364708b1c4df58d7643a341 Mon Sep 17 00:00:00 2001 From: Winfried Donkers Date: Sun, 19 Feb 2017 10:46:11 +0100 Subject: tdf#105931 Add function ROUNDSIG to Calc. SIGDIGITS rounds a value to a determined number of significant digits. Change-Id: I5dbfb638bf17ca109f9a14b3588d6d6c103edfa4 Reviewed-on: https://gerrit.libreoffice.org/34148 Tested-by: Jenkins Reviewed-by: Eike Rathke Tested-by: Eike Rathke --- include/formula/compiler.hrc | 3 ++- include/formula/opcode.hxx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/formula/compiler.hrc b/include/formula/compiler.hrc index 92627cd24ad7..12fa1c482636 100644 --- a/include/formula/compiler.hrc +++ b/include/formula/compiler.hrc @@ -501,7 +501,8 @@ #define SC_OPCODE_SWITCH_MS 490 #define SC_OPCODE_MINIFS_MS 491 #define SC_OPCODE_MAXIFS_MS 492 -#define SC_OPCODE_STOP_2_PAR 493 /* last function with two or more parameters' OpCode + 1 */ +#define SC_OPCODE_ROUNDSIG 493 +#define SC_OPCODE_STOP_2_PAR 494 /* last function with two or more parameters' OpCode + 1 */ #define SC_OPCODE_STOP_FUNCTION SC_OPCODE_STOP_2_PAR /* last function's OpCode + 1 */ #define SC_OPCODE_LAST_OPCODE_ID (SC_OPCODE_STOP_FUNCTION - 1) /* last OpCode */ diff --git a/include/formula/opcode.hxx b/include/formula/opcode.hxx index 13c85fb100c3..9aa19d2f5d81 100644 --- a/include/formula/opcode.hxx +++ b/include/formula/opcode.hxx @@ -286,6 +286,7 @@ enum OpCode : sal_uInt16 ocSwitch_MS = SC_OPCODE_SWITCH_MS, ocMinIfs_MS = SC_OPCODE_MINIFS_MS, ocMaxIfs_MS = SC_OPCODE_MAXIFS_MS, + ocRoundSig = SC_OPCODE_ROUNDSIG, // Database functions ocDBSum = SC_OPCODE_DB_SUM, ocDBCount = SC_OPCODE_DB_COUNT, -- cgit