What is the correct syntax for mod?

Discuss the Firewing language

What is the correct syntax for mod?

Postby Timbo » Wed May 13, 2015 8:53 am

Hi, Simple one I hope


What is the correct way to use mod

I have tried result = mod(a/b)
and result = mod a / b

But both give me syntax errors

Also is there an shorter method to round up or down a integer division?

Tim
Timbo
 
Posts: 93
Joined: Fri May 03, 2013 7:51 pm

Re: What is the correct syntax for mod?

Postby Timbo » Wed May 13, 2015 8:59 am

OK sorry stupid of me its

result = a mod b
Timbo
 
Posts: 93
Joined: Fri May 03, 2013 7:51 pm


Return to Language

Who is online

Users browsing this forum: No registered users and 2 guests

cron

x