Files
langflow/docs/docs/Components/calculator.mdx
Mendon Kissling 7c5668e1ca docs: rename data to JSON and dataframe to table (#12352)
* datatypes-page-and-sidebars

* release-notes

* find-and-replace-components

* notes

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* make-component-renaming-a-separate-item

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2026-03-31 17:51: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. |