diff --git a/pykat/components.py b/pykat/components.py index f26ebaebad8331cade17c48ac3f663d676825c54..1db72f21d4745c283459326b596bd2c402af914f 100644 --- a/pykat/components.py +++ b/pykat/components.py @@ -1493,6 +1493,7 @@ class modulator(Component): value = float(value) if not value.is_integer(): raise pkex.BasePyKatException("modulator order must be an integer between 1 and 6 or 's' for single sideband") + value = int(value) if value <= 1 and value > 6: raise pkex.BasePyKatException("modulator order must be between 1 and 6 or 's' for single sideband")