modified stationary.py to enforce float dtype in some operations