From af3890f5042f89e3ca3cd5caf451bf0f1d2a2618 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sat, 4 May 2013 11:49:03 -0400 Subject: [PATCH] Add a comment to move this later. We probably need a standard helper library. --- src/RageUtil.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/RageUtil.h b/src/RageUtil.h index 3ccc6e57e6..07ab2d83fa 100644 --- a/src/RageUtil.h +++ b/src/RageUtil.h @@ -411,6 +411,12 @@ void MakeLower( wchar_t *p, size_t iLen ); * @return the integer we are after. */ int StringToInt( const RString &sString ); float StringToFloat( const RString &sString ); +/** + * @brief Have a standard way of converting floats to strings. + * + * Note: this needs to be moved out of RageUtil at some point. It doesn't belong here. + * @param num the number to convert. + * @return the string as trimmed as it can be. */ RString FloatToString( const float &num ); bool StringToFloat( const RString &sString, float &fOut );