Int str n 2. Функция atof. перевести str в int. integer long double string.