> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# LOG

> The LOG function returns the logarithm of a number to a specified base. It is available across various YiDA scenarios, including forms, workflow design, and integration & automation. The basic syntax is LOG(number, base), where number is the positive real number whose logarithm you want to calculate, and base is the base of the logarithm, defaulting to 10.

## Supported Product Scenarios

The LOG function is available in the following YiDA scenarios:

* Form (main table fields)
* Form (business association rules)
* Form (validation)
* Workflow design (validation rules)
* Workflow design (association actions)
* Integration & automation
* Workflow node
* Connector

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
LOG(number,base)
```

## Attribute Description

| Attribute | Required | Description                                                                  |
| --------- | -------- | ---------------------------------------------------------------------------- |
| number    | Required | Number type. The positive real number whose logarithm you want to calculate. |
| base      | Optional | The base of the logarithm.<br />Defaults to 10 if left empty.                |

## Return Value

| Return type | Description            |
| ----------- | ---------------------- |
| Numerical   | The calculated result. |

## Example

As shown below, use the `LOG()` function to calculate the logarithm of `1024` to the base `2`.

## Try It Out

Returns the logarithm of the numerical component to the base `2`.
