[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Language Syntax
- From: Sean Conner <sean@...>
- Date: Tue, 24 Jun 2014 03:06:35 -0400
It was thus said that the Great Lucas once stated:
> but that would calculate the same division twice, is there any means to
> get the % operator return both the reminder AND the quotient?
>
> r, q = 10 %% 3
>
> or the like? my processing is getting slow with a mobile processor
Not without hitting C [1]. Even the % operator still does a divide
(technically speaking).
-spc
[1] https://github.com/spc476/lua-conmanorg/blob/master/src/math.c#L73