like sample
GetBase16() result = P.x.: 59EF0C8304BB2FDB2C0F18B262EBDBCB992D0B4CB7AE92358C22406740862D78
GetBase10() result = P.x.: -1235795984
Base10 should be = 40678206325600170710078198845059231036639843417349082810943540381348337692024
Int privKey;
privKey.SetBase16("00000000000000000000000000000000000000000000000000000000000000FF");
printf("A: %s \n", privKey.GetBase10().c_str());
privKey.SetBase16("59ef0c8304bb2fdb2c0f18b262ebdbcb992d0b4cb7ae92358c22406740862d78");
printf("B: %s \n", privKey.GetBase10().c_str());
privKey.SetBase16("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141");
printf("spec256k1 MAX value: %s \n", privKey.GetBase10().c_str());
=====output Decimal:=====
A: 255
B: 40678206325600170710078198845059231036639843417349082810943540381348337692024
spec256k1 MAX value: 115792089237316195423570985008687907852837564279074904382605163141518161494337
Thanks
but, I still not understand code
I use code from jacky19790729
I print like this
printf("\nP.x %064s\n" , P.x.GetBase16().c_str() );
and I change 16 to 10
printf("\nP.x %d\n" , P.x.GetBase10().c_str() );
result = P.x.: 59EF0C8304BB2FDB2C0F18B262EBDBCB992D0B4CB7AE92358C22406740862D78
result = P.x.: -1235795984
for this I convert from hex to decimal by manual
40678206325600170710078198845059231036639843417349082810943540381348337692024
https://www.rapidtables.com/convert/number/hex-to-decimal.htmlwhy GetBase10() not convert hex to decimal
that mean I use wrong code
(sorry I am not programmer)