question

William Glp avatar image
0 Likes"
William Glp asked Jeanette F edited

How to convert a double into an integer?

Hi! I have a distribution that returns me a double. However, I need an integer for the label I want to assign. How could I change the double into a integer?

FlexSim 22.2.2
labeldoubleinteger
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jeanette F avatar image
1 Like"
Jeanette F answered Jeanette F edited

Hello @William Glp ,

You can use a math command like floor, ceil, or round. It would look something like

Math.round(distributionResults)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.