Add truncf() replacement function.