fixes

* pragma once
* float typecasting