Signs

Started by FarisDon, Oct 02, 2015, 05:13 PM

Previous topic - Next topic

FarisDon

    cya[player.ID]=player.Cash*20;
  lolly[player.ID]=cya[player.ID]%60;
Hmm, so as you can see the code! Well the problem is that ._. i'm confused in this sign % What is this basically ? % = percentage, but the problem is how this is basically used in SQL, and a little example with explanation please :) ?
P.S: Sorry, for my bad english, and take these stats as a example because i found them in old snippets.

DizzasTeR

It returns the reminder. There is nothing big to explain tho take an example:
local a = 10;
local reminder = a % 5; // Divide a by 5 to get reminder, which is 0.

Print( reminder ); // Prints 0

FarisDon