We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a201ecb commit e87fea3Copy full SHA for e87fea3
1 file changed
lua/entities/gmod_wire_expression2/core/complex.lua
@@ -18,8 +18,8 @@ local atan2 = math.atan2
18
local function format(value)
19
local dbginfo
20
21
- if abs(value[1]) < 0 then
22
- if abs(value[2]) < 0 then
+ if abs(value[1]) <= 0 then
+ if abs(value[2]) <= 0 then
23
dbginfo = "0"
24
else
25
dbginfo = Round(value[2]*1000)/1000 .. "i"
@@ -28,7 +28,7 @@ local function format(value)
28
if value[2] > 0 then
29
dbginfo = Round(value[1]*1000)/1000 .. "+" .. Round(value[2]*1000)/1000 .. "i"
30
elseif abs(value[2]) <= 0 then
31
- dbginfo = Round(value[1]*1000)/1000
+ dbginfo = tostring(Round(value[1]*1000)/1000)
32
elseif value[2] < 0 then
33
dbginfo = Round(value[1]*1000)/1000 .. Round(value[2]*1000)/1000 .. "i"
34
end
0 commit comments