How to cast a double value to a integer value in UPPAAL?

本小妞迷上赌 提交于 2019-12-11 06:45:42

问题


How it is possible to cast a double value to a integer value in uppaal?

double rand;
rand = random(2);
int i;
i = (int) rand;

According to the API documentation (http://www.it.uu.se/research/group/darts/uppaal/help.php?file=System_Descriptions/Expressions.shtml) following function is available, but it is not working:

int fint(double x)

回答1:


The fint function is implemented in 4.1.20, please download it.



来源:https://stackoverflow.com/questions/54460545/how-to-cast-a-double-value-to-a-integer-value-in-uppaal

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!