[ << ] [ < ] [?] [ > ] [ >> ]         [??] [??] [???] [ ? ]

6.8 型を求める函数


[ << ] [ < ] [?] [ > ] [ >> ]         [??] [??] [???] [ ? ]

6.8.1 type

type(obj)

:: obj の 型 (整数) を返す.

return

整数

obj

任意

参照

ntype, vtype.


[ << ] [ < ] [?] [ > ] [ >> ]         [??] [??] [???] [ ? ]

6.8.2 ntype

ntype(num)

:: num (数) の 型 (整数) を返す.

return

自然数

obj

[0] [10/37,ntype(10/37)];
[10/37,0]
[1] [10.0/37.0,ntype(10.0/37.0)];
[0.27027,1]
[2] [newalg(x^2+1)+1,ntype(newalg(x^2+1)+1)];
[(#0+1),2]
[3] [eval(sin(@pi/6)),ntype(eval(sin(@pi/6)))];
[0.49999999999999999991,3]
[4] [@i+1,ntype(@i+1)];
[(1+1*@i),4]
参照

type.


[ << ] [ < ] [?] [ > ] [ >> ]         [??] [??] [???] [ ? ]

6.8.3 vtype

vtype(var)

:: var (不定元) の 型 (整数) を返す.

return

整数

var

不定元

参照

type, ntype, uc.


[ << ] [ < ] [?] [ > ] [ >> ]

?????10? 23, 2017?texi2html 5.0????????????