Main Content

isdouble

입력값이 배정밀도 데이터형인지 확인

설명

예제

tf = isdouble(a)fi 객체 aDataType 속성이 double형이면 1(true)을 반환합니다. 그 외의 경우에는 0(false)을 반환합니다.

예제

tf = isdouble(T)numerictype 객체 TDataType 속성이 double이면 1(true)을 반환합니다. 그 외의 경우에는 0(false)을 반환합니다.

예제

모두 축소

fi 객체를 만들고, 해당 데이터형이 double인지 확인합니다.

a = fi(pi)
a = 
    3.1416

          DataTypeMode: Fixed-point: binary point scaling
            Signedness: Signed
            WordLength: 16
        FractionLength: 13
tf = isdouble(a)
tf = logical
   0

a = fi(pi,'DataType','double')
a = 
    3.1416

          DataTypeMode: Double
tf = isdouble(a)
tf = logical
   1

numerictype 객체를 만들고, 해당 데이터형이 double인지 확인합니다.

T = numerictype
T =


          DataTypeMode: Fixed-point: binary point scaling
            Signedness: Signed
            WordLength: 16
        FractionLength: 15
tf = isdouble(T)
tf = logical
   0

T = numerictype('Double')
T =


          DataTypeMode: Double
tf = isdouble(T)
tf = logical
   1

입력 인수

모두 축소

입력 fi 객체로, 스칼라, 벡터, 행렬 또는 다차원 배열로 지정됩니다.

데이터형: fi

입력 numerictype 객체로, 스칼라로 지정됩니다.

버전 내역

R2008a에 개발됨