mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 02:05:11 +08:00
* 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>
20 lines
794 B
Plaintext
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. | |