Peter W A Wood
peterwawood at gmail.com
Sun May 18 06:53:30 EDT 2014
On 18 May 2014, at 18:31, Richmond wrote:
> Can anybody tell me what a % sign [not a hash] as an operator means in PERL?
> $lo = ($uni - 0x10000) % 0x400 + 0xDC00
> IFF a % means the same as MOD in Livecode then
> the formula in the recent stack I made to calculate surrogate pairs is not
> as bad as it could be and only needs slight modification.
Perl - % - Modulus - Divides left hand operand by right hand operand and returns remainder (perl tutorial)
LiveCode - Evaluates to the remainder left over when one number is divided by another (LC dictionary)
More information about the Use-livecode