floats and doubles IO using struct module