Files
langflow/docs/versioned_docs/version-1.9.0/Components/calculator.mdx
Mendon Kissling 71fbf5ff00 docs: cut version 1.9.0 (#12681)
* version-1.9.0-docs

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-14 02:07:01 +00:00

20 lines
794 B
Plaintext

---
title: Calculator
slug: /calculator
---
import Icon from "@site/src/components/icon";
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
The **Calculator** component performs basic arithmetic operations on mathematical expressions.
It supports addition, subtraction, multiplication, division, and exponentiation operations.
For an example of using this component in a flow, see the [**Python Interpreter** component](/python-interpreter).
## Calculator parameters
| Name | Type | Description |
|------|------|-------------|
| expression | String | Input parameter. The arithmetic expression to evaluate, such as `4*4*(33/22)+12-20`. |
| result | JSON | Output parameter. The calculation result as a [`JSON` object](/data-types) containing the evaluated expression. |