Consolefunction interprets arguments as Float instead of Int

The C++ functions expect a floating point value.
The Consolefunction now converts them to float as expected.