#pragma once #include "common/memory/unique_ptr.hpp" #include "common/string.hpp" namespace common { /** * 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. */ common::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. */ common::UniquePtr intToStr(int num); /** * Converts a unsigned integer to a string. * * @param num A number * @returns The number as a string. */ common::UniquePtr uintToStr(unsigned int num); } // namespace common