BigNumber icon indicating copy to clipboard operation
BigNumber copied to clipboard

Added more constructor types e.g. for float.

Open ghost opened this issue 10 years ago • 1 comments

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.

ghost avatar Sep 06 '15 01:09 ghost

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.

leonardoInf avatar Apr 24 '19 10:04 leonardoInf