#pragma once #include "std/memory.hpp" #include "std/smart_string.hpp" /** * Converts a double number to a string. * * @param num A double number * @param width The desired double width * @param precision The desired double precision * @returns The double as a string. */ UniquePtr doubleToStr(double num, unsigned int width = 3, unsigned int precision = 2); /** * Converts a integer to a string. * * @param num A number * @returns The number as a string. */ UniquePtr intToStr(int num); /** * Converts a unsigned integer to a string. * * @param num A number * @returns The number as a string. */ UniquePtr uintToStr(unsigned int num);