make not round by default
parent
7e405a27ee
commit
1abd3214be
|
@ -1,7 +1,7 @@
|
||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.5)
|
||||||
include(cmake/color.cmake)
|
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_TEST_VERSION 0.0.1)
|
||||||
|
|
||||||
set(BLT_TARGET BLT)
|
set(BLT_TARGET BLT)
|
||||||
|
|
|
@ -39,7 +39,8 @@ namespace blt::string
|
||||||
return ret;
|
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)
|
static inline std::string fromBytes(unsigned long bytes)
|
||||||
{
|
{
|
||||||
if (bytes > 1073741824)
|
if (bytes > 1073741824)
|
||||||
|
|
Loading…
Reference in New Issue