-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
2,658 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# INT | ||
|
||
- 입력 받은 숫자를 가장 가까운 정수로 내림 합니다. | ||
|
||
## 문법 | ||
|
||
``` | ||
INT(<숫자>) | ||
``` | ||
|
||
## 매개변수 | ||
|
||
매개변수 명 | 설명 | ||
---------|---------- | ||
숫자 | 정수로 내림 시키고자 하는 숫자 | ||
|
||
|
||
## 반환 결과 | ||
|
||
- <숫자>를 내림하여 산출된 정수 | ||
|
||
## 실습 문제 | ||
|
||
> 아래 조건으로 `<날씨>` 테이블에 새 열(계산된 열)을 추가하시오. | ||
- 새 열 이름: `[정수_평균기온]` | ||
- 활용 필드: `<날씨>` 테이블의 `[평균기온]` 필드 | ||
- 새 열 설명: 행별 `[평균기온]`을 가장 가까운 정수로 내림한 값 | ||
- 사용 함수: `INT` | ||
|
||
### 선택지 | ||
|
||
A. | ||
``` | ||
[정수_평균기온] = INT('날씨'[평균기온]) | ||
``` | ||
|
||
B. | ||
``` | ||
[정수_평균기온] = INT(SUM('날씨'[평균기온])) | ||
``` | ||
|
||
### 정답 및 해설 | ||
|
||
```{admonition} 클릭해서 정답 및 해설을 확인해보세요. | ||
:class: dropdown | ||
정답: A | ||
A. INT 함수를 사용한 후 <날씨> 테이블에 있는 [평균기온] 필드를 인자로 입력했음. 새 열 특성상 행 별로 들어가 있는 숫자들이 INT 함수에 전달되기 때문에 정상적인 문법. 그러므로 정답. | ||
B. SUM 함수를 요구하지 않았음. 그와 더불어 위 문법은 SUM 함수를 사용해 [평균기온] 필드내에 있는 모든 기온의 합을 먼저 구하고, 그 합에 대해 내림하여 정수를 구함. 결론적으로 생성되는 [정수_평균기온] 필드에는 모든 행에 동일한 상수가 들어감. 문제에서 요구하는 행별로 정수 값이 계산되지 않음. 그러므로 오답. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# ROUND | ||
|
||
- 입력 받은 숫자를 지정된 자릿수에서 반올림 합니다. | ||
|
||
## 문법 | ||
|
||
``` | ||
ROUND(<숫자>, <자릿수>) | ||
``` | ||
|
||
## 매개변수 | ||
|
||
매개변수 명 | 설명 | ||
---------|---------- | ||
숫자 | 반올림 하고 싶은 숫자 | ||
자릿수 | 0이거나 양수인 경우 소수점 `자릿수 + 1`째 자리에서 반올림, 음수인 경우 정수 \|`자릿수`\|째 자리에서 반올림 | ||
|
||
|
||
## 반환 결과 | ||
|
||
- 반올림된 결과(소수; decimal) | ||
|
||
## 실습 문제 | ||
|
||
> 아래 조건으로 `<날씨>` 테이블에 새 열(계산된 열)을 추가하시오. | ||
- 새 열 이름: `[반올림_평균기온]` | ||
- 활용 필드: `<날씨>` 테이블의 `[평균기온]` 필드 | ||
- 새 열 설명: 행별 `[평균기온]`을 소수점 둘째 자리에서 반올림한 값 (ex. 24.189 -> 24.2) | ||
- 사용 함수: `ROUND` | ||
|
||
### 선택지 | ||
|
||
A. | ||
``` | ||
반올림_평균기온 = ROUND('날씨'[평균기온], 2) | ||
``` | ||
|
||
B. | ||
``` | ||
반올림_평균기온 = ROUND('날씨'[평균기온], -2) | ||
``` | ||
|
||
C. | ||
``` | ||
반올림_평균기온 = ROUND('날씨'[평균기온], -1) | ||
``` | ||
|
||
D. | ||
``` | ||
반올림_평균기온 = ROUND('날씨'[평균기온], 1) | ||
``` | ||
|
||
### 정답 및 해설 | ||
|
||
```{admonition} 클릭해서 정답 및 해설을 확인해보세요. | ||
:class: dropdown | ||
정답: D | ||
A. 소수점 셋째 자리에서 반올림. 24.189인 경우 24.19가 반환됨. 그러므로 오답 | ||
B. 정수 둘째 자리에서 반올림. 24.189인 경우 0이 반환됨. 그러므로 오답. | ||
C. 정수 첫째 자리에서 반올림. 24.189인 경우 20이 반환됨. 그러므로 오답. | ||
D. 소수점 둘째 자리에서 반올림. 24.189인 경우 24.2이 반환됨. 그러므로 정답. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# ROUNDDOWN | ||
|
||
- 입력 받은 숫자를 지정된 자릿수에서 0에 가까이 오도록 내림 | ||
|
||
## 문법 | ||
|
||
``` | ||
ROUNDDOWN(<숫자>, <자릿수>) | ||
``` | ||
|
||
## 매개변수 | ||
|
||
매개변수 명 | 설명 | ||
---------|---------- | ||
숫자 | 반올림 하고 싶은 숫자 | ||
자릿수 | 0이거나 양수인 경우 소수점 `자릿수 + 1`째 자리에서 내림, 음수인 경우 정수 \|`자릿수`\|째 자리에서 내림 | ||
|
||
|
||
## 반환 결과 | ||
|
||
- 내림된 결과(소수; decimal) | ||
|
||
## 실습 문제 | ||
|
||
> 아래 조건으로 `<날씨>` 테이블에 새 열(계산된 열)을 추가하시오. | ||
- 새 열 이름: `[내림_평균기온]` | ||
- 활용 필드: `<날씨>` 테이블의 `[평균기온]` 필드 | ||
- 새 열 설명: 행별 `[평균기온]`을 소수점 둘째 자리에서 반올림한 값 (ex. 24.189 -> 24.2) | ||
- 사용 함수: `ROUND` | ||
|
||
### 선택지 | ||
|
||
A. | ||
``` | ||
반올림_평균기온 = ROUND('날씨'[평균기온], 2) | ||
``` | ||
|
||
B. | ||
``` | ||
반올림_평균기온 = ROUND('날씨'[평균기온], -2) | ||
``` | ||
|
||
C. | ||
``` | ||
반올림_평균기온 = ROUND('날씨'[평균기온], -1) | ||
``` | ||
|
||
D. | ||
``` | ||
반올림_평균기온 = ROUND('날씨'[평균기온], 1) | ||
``` | ||
|
||
### 정답 및 해설 | ||
|
||
```{admonition} 클릭해서 정답 및 해설을 확인해보세요. | ||
:class: dropdown | ||
정답: D | ||
A. 소수점 셋째 자리에서 반올림. 24.189인 경우 24.19가 반환됨. 그러므로 오답 | ||
B. 정수 둘째 자리에서 반올림. 24.189인 경우 0이 반환됨. 그러므로 오답. | ||
C. 정수 첫째 자리에서 반올림. 24.189인 경우 20이 반환됨. 그러므로 오답. | ||
D. 소수점 둘째 자리에서 반올림. 24.189인 경우 24.2이 반환됨. 그러므로 정답. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# ROUNDUP | ||
|
||
- 입력 받은 숫자를 지정된 자릿수에서 0에서 멀어지도록 올림 | ||
|
||
## 문법 | ||
|
||
``` | ||
ROUNDUP(<숫자>, <자릿수>) | ||
``` | ||
|
||
## 매개변수 | ||
|
||
매개변수 명 | 설명 | ||
---------|---------- | ||
숫자 | 반올림 하고 싶은 숫자 | ||
자릿수 | 0이거나 양수인 경우 소수점 `자릿수 + 1`째 자리에서 내림, 음수인 경우 정수 \|`자릿수`\|째 자리에서 내림 | ||
|
||
|
||
## 반환 결과 | ||
|
||
- 내림된 결과(소수; decimal) | ||
|
||
## 실습 문제 | ||
|
||
> 아래 조건으로 `<날씨>` 테이블에 새 열(계산된 열)을 추가하시오. | ||
- 새 열 이름: `[내림_평균기온]` | ||
- 활용 필드: `<날씨>` 테이블의 `[평균기온]` 필드 | ||
- 새 열 설명: 행별 `[평균기온]`을 소수점 둘째 자리에서 반올림한 값 (ex. 24.189 -> 24.2) | ||
- 사용 함수: `ROUND` | ||
|
||
### 선택지 | ||
|
||
A. | ||
``` | ||
반올림_평균기온 = ROUND('날씨'[평균기온], 2) | ||
``` | ||
|
||
B. | ||
``` | ||
반올림_평균기온 = ROUND('날씨'[평균기온], -2) | ||
``` | ||
|
||
C. | ||
``` | ||
반올림_평균기온 = ROUND('날씨'[평균기온], -1) | ||
``` | ||
|
||
D. | ||
``` | ||
반올림_평균기온 = ROUND('날씨'[평균기온], 1) | ||
``` | ||
|
||
### 정답 및 해설 | ||
|
||
```{admonition} 클릭해서 정답 및 해설을 확인해보세요. | ||
:class: dropdown | ||
정답: D | ||
A. 소수점 셋째 자리에서 반올림. 24.189인 경우 24.19가 반환됨. 그러므로 오답 | ||
B. 정수 둘째 자리에서 반올림. 24.189인 경우 0이 반환됨. 그러므로 오답. | ||
C. 정수 첫째 자리에서 반올림. 24.189인 경우 20이 반환됨. 그러므로 오답. | ||
D. 소수점 둘째 자리에서 반올림. 24.189인 경우 24.2이 반환됨. 그러므로 정답. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.