question

Hoang Nk avatar image
0 Likes"
Hoang Nk asked Lars Jacobsen answered

Converting string into integer

Hello,

I would like to ask if it is possible to convert a string data into an integer. I found the command string.toNum but the output is double, and I would like to use exactly integer for that data.

Thanks in advance.

FlexSim 22.1.2
string to num
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

Lars Jacobsen avatar image
0 Likes"
Lars Jacobsen answered

You can assign the result to an integer instead of double.

1658299564982.png



1658299564982.png (6.7 KiB)
5 |100000

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