|
다음 표에서 <>(꺾쇠 괄호)는 적합한 값 열에 표시된 값을 사용하여 사용자 정의될 수 있는 구문을 나타냅니다.
|
지원되는 단위 문자열 작성에 사용되는 구문
|
|
구문
|
리걸 값
|
<compound_unit>
|
• <known_compound_unit>
• <unknown_compound_unit>
• (<compound_unit>)
• <compound_unit><integer_power>
• <compound_unit><operation><compound_unit>
|
<integer_power>
|
• ** int
• ^ int
|
<real_power>
|
• ** real
^ real
|
<operation>
|
• *
• /
|
<pure_unit>
|
• 순수 단위 표의 모든 기호
|
<base_unit>
|
• 베이스 단위 표의 모든 기호
|
<unit_prefix>
|
• 단위 전위 표의 모든 기호
|
<known_unit>
|
• <pure_unit>
• <unit_prefix> <pure_unit>
|
<known_compound_unit>
|
• <known _unit>
• (<known_compound_unit>)
• < known_compound_unit><integer_power>
• < known_compound_unit><operation><known_compound_unit>
|
<unknown_unit>
|
• <known_unit>가 아닌 모든 기호
|
<unknown_compound_unit>
|
• <unknown_unit>
• <known_compound_unit><real_power>
• <unknown_compound_unit><real_power>
|
<base_compound_unit>
|
• <base_unit>
• <base_unit><integer_power>(여기서 base_unit 인덱스는 0보다 크고 integer_power는 0보다 큼)
• <base_compound_unit><operation><base_unit>(여기서 base_unit 인덱스는 base_compound_unit 내의 모든 base_unit 인덱스보다 큼)
|
연산자
|
설명
|
우선 순위
|
()
|
괄호
|
1
|
**
|
제곱
|
2
|
^
|
제곱
|
2
|
*
|
곱셈
|
3
|
/
|
나눗셈
|
3
|
지원되는 단위 문자열의 예
|
||
지원되는 단위 문자열
|
예
|
정의
|
베이스 단위 문자열:
|
• kg*m/s**2
• cd/m**2
|
베이스 단위 문자열은 모든 <base_compound_unit> 문자열입니다.
모든 베이스 단위 문자열은 변환 단위 문자열입니다.
|
변환 단위 문자열:
|
• kg*m/s**2
• A**2/kg/m**2*s**4
• 1/ um
• oz/s
• ( N*m )**-3
|
변환 단위 문자열은 모든 <known_compound_unit> 문자열입니다.
|
비변환 단위 문자열:
|
• foo
• foo**1.4
• W**0.5
|
비변환 단위 문자열은 모든 <unknown_compound_unit> 문자열입니다.
변환 단위 문자열 및 비변환 단위 문자열의 세트에는 교차 부분이 없습니다.
|