如何在 uppaal 中将双精度值转换为整数值?
double rand;
rand = random(2);
int i;
i = (int) rand;
根据 API 文档(http://www.it.uu.se/research/group/darts/uppaal/help.php?file=System_Descriptions/Expressions.shtml)以下功能可用,但它不起作用:
int fint(double x)
如何在 uppaal 中将双精度值转换为整数值?
double rand;
rand = random(2);
int i;
i = (int) rand;
根据 API 文档(http://www.it.uu.se/research/group/darts/uppaal/help.php?file=System_Descriptions/Expressions.shtml)以下功能可用,但它不起作用:
int fint(double x)