홈 › Components › Math Response (수식 답변) › 화면 13
화면 13. Math Input.suffix [sink]
원본: Computation Layer 문서(Math Response (수식 답변)) · Try It (원본 화면)
| 화면 번호 | 13 / 28 |
|---|---|
| 문서 항목 설명 (원문) | suffix Adds a suffix to everything entered by the student. Recommended for inputs that expect a certain unit (e.g., ft. or %). |
1. 화면 캡처 (빨간 번호 = 아래 표의 번호)
2. CL이 입력된 곳
| 번호 | 이름 | 종류 | CL 코드 원문, 번역, 설명 |
|---|---|---|---|
| 1 | master CL | SCREEN | subtitle: "How many people are there in the graph display?" ▶ 화면 제목 아래에 표시할 부제목(subtitle)은 "How many people are there in the graph display?"(그래프에 사람이 몇 명 있는가?)로 한다. |
| 2 | 레이블 없는 그래프 | 그래프 | # This code creates the number "t_0" in the graph # and sets it to equal the time that has passed since # the numeric answer has been submitted. ▷ 이 코드는 그래프에 숫자 "t_0"를 만들어, 숫자 답이 제출된 뒤 지난 시간과 같게 정한다. number("t_0"): input.timeSinceSubmit(20) ▶ 그래프의 변수 t_0은 수식 답변 input을 제출한 뒤 지난 시간( |
| 3 | input | 수식 답변 | # This code displays a suffix in the input field # when the input field is focused on or not blank. # A numeric value of 1 or -1 will display the singular # "person" and any other value will display the plural "people" ▷ 이 코드는 입력칸이 선택되었거나 비어 있지 않을 때 입력칸에 접미사(suffix)를 표시한다. 숫자 값이 1 또는 -1이면 단수형 "person"을, 그 밖의 값이면 복수형 "people"을 표시한다. suffix: when this.numericValue = 1 or this.numericValue = -1 "person" otherwise "people" ▶ 수식 답변의 접미사(suffix)는 이 입력의 계산한 값이 1 또는 -1이면 "person"(사람, 단수), 그렇지 않으면 "people"(사람들, 복수)로 한다. |