Trying to compile the following code, I get an error on line 2058, where the second parameter passed to divide_by_pow10 is significand_bits + kappa + 2 instead of carrier_uint or something similar. I also assume the 3rd parameter isn't the correct value.
#include "dragonbox.h"
int main( int argc, char** argv ) {
float x = 1.234f;
auto v = jkj::dragonbox::to_decimal( x, jkj::dragonbox::policy::decimal_to_binary_rounding::toward_plus_infinity );
return 0;
}
Compiling with MSVC: cl -nologo main.cpp -Fe:dragonbox.exe -Zi -Od -std:c++17
Trying to compile the following code, I get an error on line 2058, where the second parameter passed to
divide_by_pow10
issignificand_bits + kappa + 2
instead ofcarrier_uint
or something similar. I also assume the 3rd parameter isn't the correct value.Compiling with MSVC: cl -nologo main.cpp -Fe:dragonbox.exe -Zi -Od -std:c++17