Calculator
A basic calculator for OVOS - "what is 15 times 23", "what is the square root of 144", "what is 20 percent of 150". Fully offline, pure arithmetic, no external dependencies beyond number parsing.
Usage
"what is 5 plus 3"
"what is 15 times 23"
"what is 100 divided by 4"
"what is 20 percent of 150"
"what is 9 squared"
"what is the square root of 144"
"hvad er 5 plus 3" (Danish)
"hvad er kvadratroden af 144" (Danish)
Why one intent file per operation
A single intent like "what is {a} {operator} {b}", with the
operator word captured as a wildcard, does not work reliably in
padatious: with three consecutive wildcards and no literal anchor
word between {a}, {operator}, and {b}, the matcher can't tell
where one wildcard ends and the next begins. Each operation gets its
own intent file instead, with the operator as literal text - the same
anchor-word pattern every other intent in this project family uses
(e.g. ovos-skill-convert's "convert {value} {from_unit} to {to_unit}").
A rough edge fixed here (not yet back-ported elsewhere)
ovos-skill-convert, ovos-skill-tuning-fork, and
ovos-skill-rhythm-box all documented a cosmetic issue: whole-number
results spoken with a trailing ".0" (e.g. "10.0" instead of "10"),
because Python's default float formatting was used as-is. This skill
fixes it with a small _format_number() helper - a whole-number
float speaks as a plain integer, a genuine fraction rounds to 4
decimal places. Worth porting the same helper to the other skills
later; not done retroactively here to keep this change scoped to a
new skill rather than touching several existing ones at once.
Install
pip install ovos-skill-calculator
Development
See DEVELOPMENT.md.
Category
Utility
Tags
#calculator #math #arithmetic
Release files for ovos-skill-calculator 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos_skill_calculator-0.0.1.tar.gz | 21.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_skill_calculator-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.6 kB
Release files / ovos_skill_calculator-0.0.1.tar.gz
| Download URL | ovos_skill_calculator-0.0.1.tar.gz |
|---|---|
| Size | 21.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ebc758bae91aad6a25787719b7517e65fb7e85f9091e53bdb0260785b7a50bd
|
|
BLAKE2b-256 checksum How to use checksums |
ad5f28d589fcc7e9e98f13af61071cfa4e533a19e0352894cd52fba066cc03d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.
Transparency logRelease files / ovos_skill_calculator-0.0.1-py3-none-any.whl
| Download URL | ovos_skill_calculator-0.0.1-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a408c778068c9a9fc5e87af349e202338cc560fe738fa2192aac11a62ee4abbf
|
|
BLAKE2b-256 checksum How to use checksums |
3d497182c3521c48872f0c6641252cb618d99a2ea6879e856fc02c1e5cf63ac7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.
Transparency log