* @brief txFloat 转换为字符串 * * 将给定的 txFloat 对象转换为格式为 "x.xxxxxx" 的字符串。其中 x 表示小数位数。 * * @param _f 需要转换为字符串的 txFloat 对象 * @return Base::txString 转换后的字符串表示形式 */
| 88 | * @return Base::txString 转换后的字符串表示形式 |
| 89 | */ |
| 90 | static inline Base::txString FloatToString(const Base::txFloat& _f) TX_NOEXCEPT { |
| 91 | return (boost::format("%.14f") % _f).str(); |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * @brief IntToString 将整数转换为字符串 |
no test coverage detected