lua-users home
lua-l archive

Re: Language Syntax

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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

AltStyle によって変換されたページ (->オリジナル) /