mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 02:05:11 +08:00
* fix: nightly now properly gets 1.9.0 branch (#12215) before it was attempting to pull release-notes as letters are alphanumerically after numbers when we sort -V then grab tail now we only look at branch names that follow the pattern '^release-[0-9]+\.[0-9]+\.[0-9]+$' * docs: add search icon (#12216) add-back-svg * initial-content * cut-1.8-release-and-include-next-version * stage-1.8.0-and-next --------- Co-authored-by: Adam-Aghili <149833988+Adam-Aghili@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 | Data | Output parameter. The calculation result as a [`Data` object](/data-types) containing the evaluated expression. | |