fix: set prec as max in case of hex

This commit is contained in:
ToruNiina 2024-06-16 13:11:47 +09:00
parent 6533454bc6
commit 8326709fae

View File

@ -610,6 +610,10 @@ parse_floating(location& loc, const context<TC>& ctx)
fmt.prec -= 1;
}
}
else if(fmt.fmt == floating_format::hex)
{
fmt.prec = std::numeric_limits<floating_type>::max_digits10;
}
else
{
// width after decimal point