
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
Calculate extension for coc.nvim
10_000_000
:CocInstall coc-calc
sin(PI / 2) =
calc.appendWithCursor Calculate and append in front of cursorcalc.append Calculate and appendcalc.replaceWithCursor Calculate and replace in front of cursorcalc.replace Calculate and replacecalc.calculate see Vim APICreate keymappings like:
" append result on current expression
nmap <Leader>ca <Plug>(coc-calc-result-append)
" replace result on current expression
nmap <Leader>cr <Plug>(coc-calc-result-replace)
calc.priority, calc priority, default: 1000calc.highlight, enable calc highlight, default: truelet result = CocAction('runCommand', 'calc.calculate', '1.5 * PI')
Precedence is from highest to lowest.
| Operator | Example |
|---|---|
exponentiation ** | 4 ** 3 ** 2 equivalent to 4 ** (3 ** 2) |
unary + - | -2 +2 |
multiply / divide / remainder * / % | 4 % 3 4 * 3 |
| addition / subtraction | .2 - .1 .1 + .2 |
EPIabs, acos, acosh, add, asin,
asinh, atan, atanh, atan2, cbrt
ceil, cos, cosh, div, exp,
floor, hypot, ln, log, log2,
log10, max, min, mod, mul,
pow, random, round, sign, sin,
sinh, sqrt, sub, tan, tanh, trunc
Details: http://mikemcl.github.io/decimal.js/#methods
MIT
FAQs
calculate extension for coc.nvim
The npm package coc-calc receives a total of 7 weekly downloads. As such, coc-calc popularity was classified as not popular.
We found that coc-calc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.