> For the complete documentation index, see [llms.txt](https://help.ilabs.co.kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.ilabs.co.kr/faq/05/05-020.md).

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

## 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
```
