Open ghost opened 9 years ago
The declarations in BigNumber.h are missing and:
error: 'bc_double2num' was not declared in this scope bc_double2num(&num_, n);
Will fork this project and implement it.
Ok, i saw in your fork that it was already implemented. I dunno why I haven't found it in the commits. Thanks anyway.
Moved bc_init_numbers to the constructors. This is required for the double/float constructor so added it to the others as well for consistency.
Added more constructors for eg float, (u)int32/64_t. Could be done with strings as well but a float takes less space in flash than a string representing the same value.