팩토리 » Api

isint

Description

파라미터로 받은 정수인지 확인하는 API이다.

Parameters

Parameters Type Description
intValue long 검사 비교 값

Return Value

Type Description
BOOL 정수인지 여부(true, false)

Remark

intValue 파라미터 값에 대한 타입도 비교하기 때문에, "12" 값 전달시 false가 리턴된다.

자바스크립트 언어에서 Number.isInteger 함수가 지원되는 경우, 해당 함수를 사용한다.

Example

function btn_on_mouseup() { screen.alert(factory.isint(1)); // true screen.alert(factory.isint(1.2)); // false screen.alert(factory.isint("1")); // false }

See Also

isobject

Viewer Ver.

9.1.1.1

Update Date

20220427