- Index
- » Users
- » tina0606
- » Profile
Posts
Posts
Page Start Prev 1 Next End
I have a problem using modelica.. I am supposed to enter an equation in order to round to whole numbers using an if else command but i can't seem to figure it out on my own..
Can anyone help me?
My suggestion was something like this, but it doesn't work
if (omega_help(t_sol) > 0) then integer(floor(omega_help(t_sol) + 0.5)) else integer(ceil(omega_help(t_sol) - 0.5));
thank you in advance!
Page Start Prev 1 Next End
- Index
- » Users
- » tina0606
- » Profile