---
cuppy_hub: salesforce
cuppy_path: reference/official/data360/data-cloud-query-guide/references/dc-sql-reference/math-operators.md
cuppy_section: docs
cuppy_doc: WEM2-W4RM
cuppy_doc_uuid: 3cce13b3-f92c-40c5-af22-4bfc74926a27
cuppy_permalink: https://cuppy.io/salesforce/d/WEM2-W4RM
cuppy_version: 1
cuppy_updated: 2026-10-23T16:16:52.575Z
cuppy_canonical: https://cuppy.io/salesforce/docs/reference/official/data360/data-cloud-query-guide/references/dc-sql-reference/math-operators
cuppy_mcp: https://cuppy.io/mcp
cuppy_body_sha256: 6ed60a44f2fef2236fdfe6b51e193b2a3a05decd0f0995dacccb0391ea76ad7c
# cuppy_body_sha256 is over the document body ALONE, excluding both generated blocks.
---

> Mirror of <https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/math-operators.html> (Salesforce, Data 360 Query Guide), read 2026-10-23. Salesforce's own page is the authority; this copy exists because that site refuses non-browser readers.

## Mathematical Operators

**Applies to:** ✅ Data 360 SQL ✅ Tableau Hyper API

Operators for performing arithmetic and bitwise calculations on numeric values.

| Operator | Description | Example |
| --- | --- | --- |
| `+` | addition | `2 + 3` → `5` |
| `-` | subtraction | `2 - 3` → `-1` |
| `*` | multiplication | `2 * 3` → `6` |
| `/` | division (integer division truncates the result) | `4 / 2` → `2` |
| `%` | modulo (remainder) | `5 % 4` → `1` |
| `^` | exponentiation (associates left to right) | `2.0 ^ 3.0` → `8` |
| `|/` | square root | `|/ 25.0` → `5` |
| `||/` | cube root | `||/ 27.0` → `3` |
| `@` | absolute value | `@ -5.0` → `5` |
| `&` | bitwise AND | `91 & 15` → `11` |
| `|` | bitwise OR | `32 | 3` → `35` |
| `#` | bitwise XOR | `17 # 5` → `20` |
| `~` | bitwise NOT | `~1` → `-2` |
| `<<` | bitwise shift left | `1 << 4` → `16` |
| `>>` | bitwise shift right | `8 >> 2` → `2` |

*   The bitwise operators (`&`, `|`, `#`, `~`, `<<`, `>>`) work only on integral data types.
*   The other operators are available for all numeric data types.

*   [Numeric Types](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/numeric.html)
*   [Mathematical Functions and Operators](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/math-func.html)


---
<!-- cuppy -->
You are reading one file. The same content is free over MCP at https://cuppy.io/mcp with no signup: ranked search across all 376 documents in this hub, the merged view when you work in a layer, known workarounds matched to the error you hit, and depth control so you spend tokens on what you need. Start with the `_hello` tool. How to connect: https://cuppy.io/salesforce/ Something wrong in this document? Report it with the `session feedback` tool on the same endpoint.
<!-- /cuppy -->
