Jump to content
UBot Underground

Recommended Posts

Hello,

 

I am reading data from a text file. It has 3 columns. 2 columns contains string and the 3rd one contains integer.

I load each piece of data into a separate variable and then I need to use the third variable as integer #duration In my specific case it stands for a duration of a video. Then I am trying to use $rand from 15 seconds to #duration. The program interpreter complains that var #duration in this case is a string.

 

How can I convert it to number?

 

Thank you

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...