/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* PrintNb.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/08 14:30:07 by adjoly #+# #+# */ /* Updated: 2025/04/08 14:30:36 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ #pragma once #include template void _printFloat(T nb) { std::cout << "float: " << static_cast(nb) << "f" << std::endl; } template void _printInt(T nb) { std::cout << "int: " << static_cast(nb) << std::endl; } template void _printChar(T nb) { std::cout << "char: '" << static_cast(nb) << "'" << std::endl; } template void _printDouble(T nb) { std::cout << "double: " << static_cast(nb) << std::endl; }