Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lua/entities/gmod_wire_expression2/core/complex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
local function format(value)
local dbginfo

if abs(value[1]) < 0 then
if abs(value[2]) < 0 then
if abs(value[1]) <= 0 then
if abs(value[2]) <= 0 then
dbginfo = "0"
else
dbginfo = Round(value[2]*1000)/1000 .. "i"
Expand All @@ -28,7 +28,7 @@
if value[2] > 0 then
dbginfo = Round(value[1]*1000)/1000 .. "+" .. Round(value[2]*1000)/1000 .. "i"
elseif abs(value[2]) <= 0 then
dbginfo = Round(value[1]*1000)/1000
dbginfo = tostring(Round(value[1]*1000)/1000)
elseif value[2] < 0 then
dbginfo = Round(value[1]*1000)/1000 .. Round(value[2]*1000)/1000 .. "i"
end
Expand Down Expand Up @@ -67,7 +67,7 @@

r = log(sqrt(l))

local c,s

Check warning on line 70 in lua/entities/gmod_wire_expression2/core/complex.lua

View workflow job for this annotation

GitHub Actions / lint

"Unused variable"

Unused variable: s
c = x/sqrt(l)

i = acos(c)
Expand Down
Loading