> For the complete documentation index, see [llms.txt](https://docs.tlic.cmu.ac.th/cmucanvas-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tlic.cmu.ac.th/cmucanvas-manual/quiz-assign/new-quizzes/numeric.md).

# Numeric

ข้อคำถามแบบสูตรคำนวน ผู้เรียนสามารถส่งคำตอบได้ทั้งตัวเลข ตัวอักษร และสัญลักษณ์ ทั้งนี้ระบบจะสามารถตรวจให้คะแนนอัตโนมัติได้เฉพาะคำตอบที่เป็นตัวเลขเท่านั้น

## เพิ่มคำถาม

<figure><img src="https://3470142670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSgE1vEnY4YfAcopihK%2Fuploads%2FNQZtEn5HbzFkO3uESYfv%2Fimage.png?alt=media&amp;token=fb7320e4-4904-423a-b231-2e07168f1fe6" alt=""><figcaption></figcaption></figure>

\[1] หัวข้อ ส่วนนี้ผู้เรียนจะไม่เห็น

\[2] ข้อคำถาม

## เพิ่ม Requirement

<figure><img src="https://3470142670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSgE1vEnY4YfAcopihK%2Fuploads%2FEpl1peayLHMUVsfpCIbW%2Fimage.png?alt=media&amp;token=94f7c44a-1734-4918-ba27-0cea16ddf0b4" alt=""><figcaption></figcaption></figure>

คำตอบที่ต้องการในข้อคำถามข้อนี้ สามารถเลือกได้ที่ \[1] โดยสามารถเลือกได้จาก Exact Response, Margin of Error, Within a Range, หรือ Precise Response และใส่คำตอบที่เป็นไปได้ที่ \[2]

#### Exact Response <a href="#exact-response-requirement" id="exact-response-requirement"></a>

<figure><img src="https://3470142670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSgE1vEnY4YfAcopihK%2Fuploads%2FdpC7ovVVeuTlOnwIhTbq%2Fimage.png?alt=media&amp;token=d6211e4e-d391-49c4-8c34-b315ca5788d6" alt=""><figcaption></figcaption></figure>

เลือก Exact Response ที่ \[1] ใส่คำตอบที่ \[2] หรือใช้ลูกศรเพิ่มจำนวนที่ \[3] ทั้งนี้ Exact Response รองรับคำตอบที่เป็นสัญกรณ์วิทยาศาสตร์ (scientific notation) ด้วย ยกเว้น format: 1.234\*10^5

โดยผู้เรียนจำเป็นต้องตอบให้ตรงกับคำตอบที่อยู่ในระบบเท่านั้นจึงจะได้คะแนน

**ช่องกรอกข้อมูลรองรับเฉพาะตัวเลข จุด เครื่องหมายจุลภาค ดอกจัน และเครื่องหมายคาเร็ตเท่านั้น**

#### Margin of Error <a href="#margin-of-error-requirement" id="margin-of-error-requirement"></a>

<figure><img src="https://3470142670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSgE1vEnY4YfAcopihK%2Fuploads%2Fr5uLN9vGcAHnZkDcGaa6%2Fimage.png?alt=media&amp;token=ed18aae2-2ed2-4af2-967d-63b3a568193a" alt=""><figcaption></figcaption></figure>

เลือก Margin of Error ที่ \[1] ใส่คำตอบที่ \[2] หรือใช้ลูกศรเพิ่มจำนวนที่ \[3] เพิ่มขอบเขตที่ \[4] และเลือกประเภทของขอบเขตได้ที่ Type ซึ่งจะมีเป็นเมนู Dropdown ซึ่ง Requirement ประเภทนี้ไม่รองรับข้อมูลที่เป็นสัญกรณ์วิทยาศาสตร์ (scientific notation)ใดๆ

**ช่องกรอกข้อมูลรองรับเฉพาะตัวเลข จุด และเครื่องหมายจุลภาคเท่านั้น**

#### Within a Range

<figure><img src="https://3470142670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSgE1vEnY4YfAcopihK%2Fuploads%2FCfWSjszlcuckoz6jx1mv%2Fimage.png?alt=media&amp;token=929b5955-0ccf-4f32-ba42-260cb30346a5" alt=""><figcaption></figcaption></figure>

เลือก Within a Range ที่ \[1] ใส่ช่วงเริ่มต้นที่ \[2] และช่วงสิ้นสุดที่ \[3] ทั้งนี้ Within a Range รองรับคำตอบที่เป็นสัญกรณ์วิทยาศาสตร์ (scientific notation) ด้วย ยกเว้น format: 1.234\*10^5

**ช่องกรอกข้อมูลรองรับเฉพาะตัวเลข จุด เครื่องหมายจุลภาค ดอกจัน และเครื่องหมายคาเร็ตเท่านั้น**

#### Precise Response <a href="#precise-response-requirement" id="precise-response-requirement"></a>

<figure><img src="https://3470142670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSgE1vEnY4YfAcopihK%2Fuploads%2Fhq1T22QiJvVfu4vpg9mz%2Fimage.png?alt=media&amp;token=f4347c7b-4f2a-4009-9e4c-7266520c29ea" alt=""><figcaption></figcaption></figure>

เลือก Precise Response ที่ \[1] ใส่คำตอบที่ \[2] ค่าความแม่นยำที่ \[3] และประเภทของความแม่นยำที่ \[4] โดยมีตัวเลือกคือเลขนัยสำคัญและทศนิยม(significant digits และ decimal places) ทั้งนี้ Precise Response ไม่รองรับคำตอบที่เป็นสัญกรณ์วิทยาศาสตร์ (scientific notation)

ผู้เรียนจะได้คะแนนเมื่อตอบตรงกับจำนวนเลขนัยสำคัญหนือทศนิยมที่ผู้สอนกำหนดไว้

**ช่องกรอกข้อมูลรองรับเฉพาะตัวเลข จุด เครื่องหมายจุลภาคเท่านั้น และค่า Precision ต้องเป็นจำนวนเต็มที่มากกว่า 1**

## คลิปสาธิตการสร้างคำถามประเภท Numeric

{% embed url="<https://youtu.be/pMwPaY8hZjg>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.tlic.cmu.ac.th/cmucanvas-manual/quiz-assign/new-quizzes/numeric.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
