of     1   

UnstableScript0
#180856555Friday, January 01, 2016 10:07 PM GMT

Come up with a way to "multiply" without the asterisk symbol in Lua. My way: print(1 / 0.5) >>2 When I looked up "Ninjas" in Thesaurus.com, it said "Ninja's can't be found" Well played Ninjas, well played.
ray_revenge
#180856665Friday, January 01, 2016 10:08 PM GMT

1+1
bosswalrus
#180856695Friday, January 01, 2016 10:09 PM GMT

what Lua version? If you can use Lua 5.3(Or 5.2 I think you need to use a module for it) You could use shifting.
UnstableScript0
#180856740Friday, January 01, 2016 10:09 PM GMT

rvox u fail When I looked up "Ninjas" in Thesaurus.com, it said "Ninja's can't be found" Well played Ninjas, well played.
UnstableScript0
#180856799Friday, January 01, 2016 10:10 PM GMT

I intended it to just be ROBLOX Lua. When I looked up "Ninjas" in Thesaurus.com, it said "Ninja's can't be found" Well played Ninjas, well played.
bosswalrus
#180856898Friday, January 01, 2016 10:11 PM GMT

I don't think ROBLOX Lua has bitwise operations? I don't know I haven't used ROBLOX in a month.
wallywally1
#180857152Friday, January 01, 2016 10:14 PM GMT

Actually, rvox correctly multiplied 1 without the * . So... Seeing as how multiplication is simply stacking addition. 6+6+6+6 = 6*4
AnonyAnonymous
#180857279Friday, January 01, 2016 10:15 PM GMT

You may be able to accomplish this recursively.
bosswalrus
#180857302Friday, January 01, 2016 10:15 PM GMT

This is a multiplication thing I wrote with the Little Man Computer Instruction Set (Doesn't handle negatives) INP STA Multiplicand INP STA Multiplier RepeatedAddition LDA Multiplier BRZ ProductFound LDA CurrentSum ADD Multiplicand STA CurrentSum LDA Multiplier SUB One STA Multiplier BRA RepeatedAddition ProductFound LDA CurrentSum OUT Multiplicand DAT 0 Multiplier DAT 0 CurrentSum DAT 0 One DAT 1 I'd probably apply something like this to Lua 5.1
[rfa#hidefromsearch]
#180859337Friday, January 01, 2016 10:40 PM GMT

[rfa#hidefromsearch]
[rfa#hidefromsearch]
#180860067Friday, January 01, 2016 10:48 PM GMT

[rfa#hidefromsearch]
UnstableScript0
#180860164Friday, January 01, 2016 10:49 PM GMT

fail because that uses loadstring which won't work on the client When I looked up "Ninjas" in Thesaurus.com, it said "Ninja's can't be found" Well played Ninjas, well played.
JarodOfOrbiter
#180860677Friday, January 01, 2016 10:55 PM GMT

I would just go with your way. local function Multiply(A, B) return A / (1/B) -- Or A/B^-1 end
wonderful72pike
#180860693Friday, January 01, 2016 10:55 PM GMT

local x = 2 local y = 2 print(10^(math.log10(x) + math.log10(y))) >> 4 Done.
Notwal
#180860871Friday, January 01, 2016 10:57 PM GMT

Here's a wacky way: local x = 4 -- the number of times your multiplying the number by local y = 2 -- the number local z -- the product if y ~= 1 and x ~= 1 then repeat x = x - 1 z = z + y until x == 0 else z = 1 end if x == 1 then z = y end print(z)
lordrambo
#180861534Friday, January 01, 2016 11:04 PM GMT

There is no such thing as multiplying without multiplying. You're way is division, and will produce a division instruction in the bytecode.
UnstableScript0
#180861672Friday, January 01, 2016 11:06 PM GMT

I said "multiply" That implies sort-of multiply. That implies simulating it. That implies I AM NOT IN THE MOOD FOR YOUR GUYS BULLCRAP. When I looked up "Ninjas" in Thesaurus.com, it said "Ninja's can't be found" Well played Ninjas, well played.
lordrambo
#180862222Friday, January 01, 2016 11:12 PM GMT

You said "multiply". That implies multiply. You can't say someone else's solution is wrong (such as "1 + 1") when yours is exactly no better. Also the solution is y/(1/x)
chimmmihc
#180862250Friday, January 01, 2016 11:12 PM GMT

function m(n1, n2) local sum for i = 1, math.abs(n2) do sum = sum + n1 end if n1 < 0 or n2 < 0 then sum = sum / -1 end return sum end
wonderful72pike
#180862417Friday, January 01, 2016 11:14 PM GMT

@lord wins, one really simple line that does positives and negatives.
macaroni54
#180872314Saturday, January 02, 2016 1:16 AM GMT

[(a+a)/2]^N?????? it's technically not using multiplication :p....
DejaVu_Loop
#180872675Saturday, January 02, 2016 1:21 AM GMT

Lol this is easy. function multiply(a,b) return a/(1/b) end
PureConcept
#180872840Saturday, January 02, 2016 1:24 AM GMT

^ The Legend of Heroes Sen no Kiseki
eLunate
#180874407Saturday, January 02, 2016 1:45 AM GMT

Multiplying without the asterisk? Useless - The amount of overhead for division of double precision floating point (And other numbers, at that) is much greater than that of multiplication.
fishguy100
#180876380Saturday, January 02, 2016 2:13 AM GMT

local function Multiply(A,B) return A..string.char(42)..B end That might work lol

    of     1