diff options
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 92997d20..ea0c8fa4 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -118,6 +118,12 @@ var CorrectionsMonitor = { } }; +#if CORRECT_ROUNDINGS +function cRound(x) { + return x >= 0 ? Math.floor(x) : Math.ceil(x); +} +#endif + #if CHECK_OVERFLOWS //======================================== // Debugging tools - Mathop overflows |