summaryrefslogtreecommitdiff
path: root/include/formula
diff options
context:
space:
mode:
authorWinfried Donkers <winfrieddonkers@libreoffice.org>2017-02-19 10:46:11 +0100
committerEike Rathke <erack@redhat.com>2017-02-20 17:04:04 +0000
commit3ee1c41ac72aaae9f364708b1c4df58d7643a341 (patch)
treec2727c64b4d063c1b7ba969667d2fa17aa3172e1 /include/formula
parent1c3a784d38fc5986c78bab8d283c4661347baf43 (diff)
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 <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'include/formula')
-rw-r--r--include/formula/compiler.hrc3
-rw-r--r--include/formula/opcode.hxx1
2 files changed, 3 insertions, 1 deletions
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,