Skip to content

Commit 8a33e77

Browse files
committed
fix
1 parent c38e6a6 commit 8a33e77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SymbolicControlSystems.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ function ControlSystemsBase.tf(sys::Sym, h = nothing)
8989
# d = d.monic() # Don't do this here
9090
if h === nothing || h isa Continuous
9191
d = sp.Poly(d, s)
92-
n = n isa Number ? float(n) : sp.Poly(n, s)
92+
n = n isa Number ? 1.0*n : sp.Poly(n, s)
9393
tf(expand_coeffs(n, s), expand_coeffs(d, s))
9494
else
9595
d = sp.Poly(d, z)
96-
n = n isa Number ? float(n) : sp.Poly(n, z)
96+
n = n isa Number ? 1.0*n : sp.Poly(n, z)
9797
tf(expand_coeffs(n, z), expand_coeffs(d, z), h)
9898
end
9999
end

0 commit comments

Comments
 (0)