mirror of
https://github.com/nqrduck/ATM.git
synced 2024-12-01 22:33:13 +00:00
.. | ||
examples | ||
src | ||
gpl.txt | ||
keywords.txt | ||
library.properties | ||
LICENSE | ||
README.md |
BigNumber
BigNumber library for Arduino devices.
Use 256-bit numbers on tiny platforms.
ported from https://github.com/nickgammon/BigNumber
Requirements
- Any Arduino Device: (recommended model) Adafruit Feather HUZZAH with ESP8266 WiFi
- Arduino IDE: https://www.arduino.cc/en/Main/Software
Usage
Initialize the BigNumber library
BigNumber.begin();
create your BigNumber
BigNumber bigNum;
bigNum = "67411411944031530524562029520200239450929984281572279077458355238873731477537";
BigNumber bigNum = "67411411944031530524562029520200239450929984281572279077458355238873731477537";
modify your BigNumber
BigNumber bigNum = "67411411944031530524562029520200239450929984281572279077458355238873731477537";
BigNumber base = 16;
BigNumber multiplier = base.pow(8);
bigNum *= multiplier;
Serial.print your BigNumber
BigNumber bigNum = "67411411944031530524562029520200239450929984281572279077458355238873731477537";
Serial.println(bigNum);
67411411944031530524562029520200239450929984281572279077458355238873731477537