---
title: Number.Log – คำนวณลอการิทึมธรรมชาติ
url: https://www.thepexcel.com/functions/power-query/number-functions/number-log/
type: function-explainer
program: Power Query
syntax: "Number.Log(number as number, optional base as nullable number) as number"
date: 2025-12-12
updated: 2025-12-17
scores:
  popularity: 5
  difficulty: 3
  usefulness: 5
---

# Number.Log – คำนวณลอการิทึมธรรมชาติ

> คำนวณลอการิทึมธรรมชาติของตัวเลข

## คำอธิบาย

Number.Log คำนวณลอการิทึมธรรมชาติของตัวเลข (ลอการิทึมฐาน e) สามารถระบุฐานที่ต้องการได้ มีประโยชน์ในการคำนวณทางวิทยาศาสตร์และสถิติ

## Syntax

```excel
Number.Log(number as number, optional base as nullable number) as number
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| number | Yes | number |  | ตัวเลขที่ต้องการคำนวณลอการิทึม |
| base | No | nullable number | null | ฐานของลอการิทึม (ค่าเริ่มต้น: e) |

## ตัวอย่าง

### 1. ตัวอย่างที่ 1: ลอการิทึมธรรมชาติ

```excel
Number.Log(10)
```

**ผลลัพธ์:** `2.302585`

ลอการิทึมธรรมชาติของ 10 คือ ประมาณ 2.303

### 2. ตัวอย่างที่ 2: ลอการิทึมฐาน 2

```excel
Number.Log(8, 2)
```

**ผลลัพธ์:** `3`

ลอการิทึมฐาน 2 ของ 8 คือ 3 (เพราะ 2^3 = 8)

### 3. ตัวอย่างที่ 3: ลอการิทึมฐาน 10

```excel
Number.Log(100, 10)
```

**ผลลัพธ์:** `2`

ลอการิทึมฐาน 10 ของ 100 คือ 2

## คำถามที่พบบ่อย

**Q: ความแตกต่างระหว่าง Number.Log, Number.Log10, Number.Ln**

Log ใช้ฐาน e โดยปกติ Log10 ใช้ฐาน 10 Ln เป็นลอการิทึมธรรมชาติ

## ฟังก์ชันที่เกี่ยวข้อง

- [Number.Log10 – คำนวณลอการิทึมฐาน 10](https://www.thepexcel.com/functions/power-query/number-functions/number-log10/)
- [Number.Exp – คำนวณ e ยกกำลัง](https://www.thepexcel.com/functions/power-query/number-functions/number-exp/)
- [Number.Power – เลขยกกำลัง](https://www.thepexcel.com/functions/power-query/number-functions/number-power/)

## แหล่งข้อมูลเพิ่มเติม

- [Microsoft Learn: Number.Log](https://learn.microsoft.com/en-us/powerquery-m/number-log) _(documentation)_

---

_Source: [https://www.thepexcel.com/functions/power-query/number-functions/number-log/](https://www.thepexcel.com/functions/power-query/number-functions/number-log/)_
