# Numerical

Numerical(คำถามตัวเลข) ลักษณะคล้ายคำถามแบบ short-answer question แต่จะแตกต่างกันที่ Quiz แบบ Numerical จะตั้งค่าการรับคำตอบที่อยู่ในช่วงตัวเลข(error)ที่ตั้งค่าเอาไว้ได้ เช่น คำตอบคือ 30 error ที่ยอมรับได้คือ 5 คำตอบที่ระบบจะตรวจและให้คะแนนคือคำตอบที่อยู่ในช่วง 25 ถึง 35 เป็นต้น

### จุดเด่นของ Quiz แบบ Numerical

* ให้คะแนนแยกระหว่างคำตอบที่เป็นตัวเลขและหน่วยได้
* เลือกตอบหน่วยเป็นการพิมพ์ตัวอักษรหรือเป็นตัวเลือก multichoice ได้
* ตั้งค่าการให้คะแนนในคำตอบที่ใกล้เคียงได้
* เลือกใช้ได้ทั้งหน่วยที่อยู่ด้านหน้าและด้านหลังตัวเลขได้

### Unit handling

![](/files/7MD5bXGpwRvynQBs1wqw)

เป็นส่วนการตั้งค่าหน่วย ประกอบด้วย

* Unit handling&#x20;
  * Unit are not used at all. Only the numerical value is graded. หน่วยวัดจะไม่ถูกนำมาคิดคะแนน จะนับคะแนนเฉพาะส่วนของตัวเลขที่น.ศ.ตอบมาเท่านั้น
  * Units are optional. If a unit is entered, it is used to convert the response to Unit 1 before grading มีหรือไม่มีหน่วยวัดก็ได้ แต่กรณีที่ถูกใส่มาหน่วยวัดนั้นจะถูกแปลงเป็น Unit 1 (ในส่วนของ Units ในแถบการตั้งค่าต่อไป)ก่อนถูกตรวจให้คะแนน
  * The unit must be given, and will be graded น.ศ.จะต้องตอบทั้งตัวเลขและหน่วย และจะถูกคิดคะแนนทั้งสองส่วนนี้
* Unit penalty การหักคะแนน จะถูกหักเมื่อน.ศ.เขียนหน่วยผิด หรือพิมพ์หน่วยลงในช่องตอบตัวเลข โดยสามารถตั้งค่าการหักคะแนนได้ตั้งแต่ 0 ถึง 1 คะแนน และจะใช้งานการตั้งค่าส่วนนี้ได้เมื่อเปิด Unit handling เป็น The unit must be given, and will be graded. และมีการตั้งค่าย่อยอีก 2 อย่าง ดังนี้
  * as a fraction(0-1)of the response grade หักคะแนนจากตัวเลือกในข้อนั้นๆ
  * as a fraction(0-1)of the question grade หักคะแนนจากโจทย์ในข้อนั้นๆ
* Units are input using การตั้งค่าการตอบหน่วยในรูปแบบต่างๆ จะใช้งานการตั้งค่าส่วนนี้ได้เมื่อเปิด Unit handling เป็น The unit must be given, and will be graded. มีรูปแบบที่ตั้งค่าได้ดังนี้
  * the text input element พิมพ์ตอบเป็นตัวอักษร
  * a multiple choice selection ตัวเลือกหลายคำตอบให้เลือกตอบ
  * a frop-down menu ตัวเลือกทั้งหมดอยู่ในช่อง dropdown ให้เลือกตอบ
* Units go การตั้งค่าตำแหน่งของหน่วย มีให้เลือกด้านหลังตัวเลขและด้านหลังตัวเลข

### Units

![](/files/SvVn80RL2enA1FIk1AXH)

การตั้งค่าหน่วยวัดต่างๆที่น.ศ.สามารถตอบได้ โดย Unit 1 จะมี Default Multiplier เป็น 1.0 และไม่สามารถแก้ไขได้ ในส่วนของ Units นี้จะไม่สามารถเปิดใช้งาน Units ได้ถ้าเลือก Unit handling เป็น Unit are not used at all. Only the numerical value is graded. สามารถเพิ่ม Unit ได้มากกว่า 1 โดยอาจขึ้นอยู่กับหน่วยนับระบบเมตริกที่มีความเป็นไปได้ที่น.ศ.จะตอบ และเลือกตั้งค่า Multiplier ในหน่วยนับแต่ละตัวได้

เช่น คำตอบของโจทย์คือ 5500W , Unit 1 คือ W , Multiplier เป็น 1.0 เมื่อเพิ่ม Unit 2 เป็น kW , Multiplier จะต้องเป็น 0.001 ถ้าน.ศ.ส่งคำตอบมาเป็น 5.5kW น.ศ.ก็จะได้คะแนนในโจทย์ข้อนั้น เป็นต้น


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tlic.cmu.ac.th/cmumoodle-manual/quiz/creating-quiz/question-type/numerical.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
