mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 20:28:43 +08:00
* docs: OpenAPI spec version upgraded from 1.6.5 to 1.6.8 (#10627) Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com> Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> * up to models and agents * sidebars * fix-broken-links * chore: Fix indentation on bundles-docling.mdx (#10640) * sidebars * redo-intros * link-to-models * data-components * files-components-no-kb * io-components * helper-utility-components * llm-ops-components * logic-components * processing-pages * sidebars * combine-legacy-components-into-one-page * update-links * remove-overview-pages-and-redirect * make-mcp-tools-page * Apply suggestions from code review Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> * no-cap --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com> Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
20 lines
795 B
Plaintext
20 lines
795 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 | Data | Output parameter. The calculation result as a [`Data` object](/data-types) containing the evaluated expression. | |