Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meld-cp/obsidian-calc
https://github.com/meld-cp/obsidian-calc
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/meld-cp/obsidian-calc
- Owner: meld-cp
- License: mit
- Created: 2021-05-16T02:57:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T07:42:05.000Z (5 months ago)
- Last Synced: 2024-10-14T07:32:33.979Z (22 days ago)
- Language: TypeScript
- Size: 329 KB
- Stars: 55
- Watchers: 3
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-repos - meld-cp/obsidian-calc - (TypeScript)
README
# Obsidian Calculator Plugin
This plugin uses https://github.com/5anthosh/fcal to evaluate math expressions within your Obsidian notes.
>Using fcal, you can perform basic arithmetic, percentage operations with precision. It features a flexible expression parser with a large set of built-in units, functions and constants.
See https://github.com/5anthosh/fcal/wiki for more information.
## Usage
### Example 1, insert answer
Write an expression which ends with the equal symbol, like:```
PI * 4cm ^ 2 =
```Select the expression and choose evaluate from the command palette:
The expression should be evaluated:
```
PI * 4cm ^ 2 = 50.265482457436691815 Centimeters
```### Example 2, copy to clipboard
Write an expression without ending it with an equals symbol:```
23 % of 1023
```Select the expression and choose evaluate from the command palette like done in Example 1 above.
The evaluated expression will be copied to the clipboard.
### Example 3, variables and multilines
Variables and multiline expressions are supported.```
x=56.43
y=x/2
z+y=
```Selecting all 3 lines and running the evaluate command from the palette will result in:
```
x=56.43
y=x/2
x+y=84.645
```## Settings
None at present.
## Installation
You can install the plugin via the Community Plugins tab within Obsidian by searching for "Calc"
## Do you find this plugin useful?
Thank you for your support 🙏