mirror of
https://github.com/nqrduck/ATM.git
synced 2024-11-29 21:33:15 +00:00
1.2 KiB
1.2 KiB
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