make not round by default

v1
Brett 2024-03-11 12:07:00 -04:00
parent 7e405a27ee
commit 1abd3214be
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.5)
include(cmake/color.cmake)
set(BLT_VERSION 0.14.14)
set(BLT_VERSION 0.14.15)
set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT)

View File

@ -39,7 +39,8 @@ namespace blt::string
return ret;
}
template<int decimal_places = 0>
// negative decimal places will not round.
template<int decimal_places = -1>
static inline std::string fromBytes(unsigned long bytes)
{
if (bytes > 1073741824)