Files
langflow/docs/versioned_docs/version-1.10.0/Components/calculator.mdx
Mendon Kissling 2411d8036e docs: build OpenAPI spec and cut version 1.10 (#13537)
* build-api

* bump-version-to-1.10

* fix-broken-links
2026-06-08 18:25:14 +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. |