# 시험법 계산식 반올림 방법

## Q 문의&#x20;

* 계산식에서 반올림 및 버림은 어떻게 사용하나요?

## A 답변&#x20;

* **"RoundTo"**&#xB97C; 사용하면 반올림할 수 있습니다.

```c
// 소수점 둘째 자리까지 반올림으로 표현하고 싶은 경우
A = 0.2354
Result = RoundTo(0, A, -2) // (0<사사오입 반올림>, A<반올림할 값의 변수>, -2<자릿수>)
Result = 0.24
```

* **"TruncTo"**&#xB97C; 사용하면 버림할 수 있습니다.

```c
// 소수점 둘째 자리까지 버림으로 표현하고 싶은 경우
A = 0.2354
Result = TruncTo(A, -2) // (A<버림할 값의 변수>, -2<자릿수>)
Result = 0.23
```


---

# 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://help.ilabs.co.kr/faq/05/05-020.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.
