> For the complete documentation index, see [llms.txt](https://docs.waterflai.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.waterflai.ai/studio/studio-builders/flow-components-nodes/calculator-tool-node.md).

# Calculator tool Node

### Overview

The Calculator Tool Node provides mathematical calculation capabilities to your flow, particularly useful in agent-based tasks. It enables real-time evaluation of mathematical expressions through a standardized tool interface that can be used by agent nodes.

Usage cost: 0 credit

### Configuration

This node has no configurable settings as it provides a standard calculator tool interface.

#### Output Ports

* `calculator_tool` (Tool): A tool object that can:
  * Evaluate mathematical expressions
  * Handle basic and complex calculations
  * Provide formatted results
  * Process numeric operations safely

### Best Practices

1. **Expression Formatting**
   * Use clear mathematical syntax
   * Ensure proper operator spacing
   * Group complex expressions with parentheses
   * Validate input expressions
2. **Error Handling**
   * Plan for division by zero
   * Handle invalid expressions gracefully
   * Validate numeric inputs
   * Check for calculation overflow

### Common Issues

* Syntax errors in expressions
* Floating-point precision errors
* Invalid mathematical operations
* Expression parsing failures
* Invalid function calls
