Richmond 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) Regards Peter _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode