ui: Replace forced exponential float display in hex editor with conditional one

This commit is contained in:
WerWolv
2022-08-04 09:05:46 +02:00
parent c1da2497a7
commit de386a9927

View File

@@ -195,8 +195,8 @@ namespace hex::plugin::builtin {
constexpr static inline auto ByteCount = sizeof(T);
constexpr static inline auto CharCount = 14;
const static inline auto FormatStringUpperCase = hex::format("%{}E", CharCount);
const static inline auto FormatStringLowerCase = hex::format("%{}e", CharCount);
const static inline auto FormatStringUpperCase = hex::format("%{}G", CharCount);
const static inline auto FormatStringLowerCase = hex::format("%{}g", CharCount);
const char *getFormatString(bool upperCase) {
if (upperCase)