diff options
author | Winfried Donkers <winfrieddonkers@libreoffice.org> | 2017-02-19 10:46:11 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-02-20 17:04:04 +0000 |
commit | 3ee1c41ac72aaae9f364708b1c4df58d7643a341 (patch) | |
tree | c2727c64b4d063c1b7ba969667d2fa17aa3172e1 /include | |
parent | 1c3a784d38fc5986c78bab8d283c4661347baf43 (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')
-rw-r--r-- | include/formula/compiler.hrc | 3 | ||||
-rw-r--r-- | include/formula/opcode.hxx | 1 |
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, |