nickgammon / BigNumber

BigNumber library for the Arduino
MIT License
87 stars 22 forks source link

Added more constructor types e.g. for float. #2

Open ghost opened 9 years ago

ghost commented 9 years ago

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.

leonardoInf commented 5 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.