---
title: Evaluate Math Expression
slug: evaluate-math-expression
docTags: 
createdAt: 2021-12-22T07:13:36.000Z
---

Evaluates a math expression and returns an output including the ceiling, floor, abs, rounded and absolute values



### API Definition

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://orca.pathfix.com/functions/number/math",
  "name": "Evaluate Math Expression API",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "ZwfEJCJ5JgexGFbnhnGVY",
        "code": "{\n    \"output\": {\n        \"value\": 3.3333333333333335,\n        \"cieling\": 4,\n        \"floor\": 3,\n        \"abs\": 3.3333333333333335,\n        \"round2\": 3.33,\n        \"round\": 3\n    }\n}",
        "language": "200"
      },
      {
        "id": "LQvawIK2DufacaCNG1_KW",
        "code": "{\n    \"message\": \"error\"\n}",
        "language": "404"
      }
    ],
    "selectedLanguageId": "ZwfEJCJ5JgexGFbnhnGVY"
  },
  "examples": {
    "languages": [
      {
        "id": "YyER_zBun_-86XXN33mDt",
        "code": "{\r\n    \"input\": \"10.000 / 3\"\r\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "YyER_zBun_-86XXN33mDt"
  },
  "description": "Call the following API:",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::












