convert C++ templates to float case only