该方法检查数字是否为整数值。
Is_Integer - 语法
Is_Integer(X)
X - 一个数字值。
Is_Integer - 返回值
如果指定为参数的数字是Integer值,则返回值为true,否则将返回false。
-module(helloLearnfk). -export([start/0]). start() -> Num=3, io:fwrite("~w",[is_integer(Num)]).
当我们运行上述程序时,我们将得到以下输出。
true
该方法检查数字是否为整数值。
Is_Integer(X)
X - 一个数字值。
如果指定为参数的数字是Integer值,则返回值为true,否则将返回false。
-module(helloLearnfk). -export([start/0]). start() -> Num=3, io:fwrite("~w",[is_integer(Num)]).
当我们运行上述程序时,我们将得到以下输出。
true
暂无评论
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-18
2024-05-18
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17