Jump to content
UBot Underground

I need modula function. How can I perform it?


Recommended Posts

I need to perform a modula operation.

 

I need this;

 

Number MOD 2

 

if the result equal to zero I will perform something. So how can I perform a MOD function.

 

PS : It is possible to define a mod function as

 

a mod n = a - (n * int(a/n))

 

Is there an int function? :)

Link to post
Share on other sites

I did not think anyone ever used that MOD function except way back in the BasicA days. lol

 

Me too. But I need something like this. There are two different txt file. I have to make a third one using them. Like this;

 

File1 :

aaaa

bbbb

cccc

dddd

 

File2 :

1111

2222

 

The One I will build;

aaaa,1111

bbbb,1111

cccc,2222

dddd,2222

 

By using mod, I am able to match them like this. Do you have any suggestions other than using mod?

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...