파라미터로 받은 정수인지 확인하는 API이다.
Parameters | Type | Description |
---|---|---|
intValue | long | 검사 비교 값 |
Type | Description |
---|---|
BOOL | 정수인지 여부(true, false) |
intValue 파라미터 값에 대한 타입도 비교하기 때문에, "12" 값 전달시 false가 리턴된다.
자바스크립트 언어에서 Number.isInteger 함수가 지원되는 경우, 해당 함수를 사용한다.
function btn_on_mouseup()
{
screen.alert(factory.isint(1)); // true
screen.alert(factory.isint(1.2)); // false
screen.alert(factory.isint("1")); // false
}