Your ftoi function if flawed in so many ways:

By the name "ftoi", most would immediately assume it converts a float to an int.
The design is flawed in the it will almost certainly result in...