Oktatás * Programozás 2 * Szkriptnyelvek * levelezősök Félévek Linkek * kalendárium |
Nim /
20180617kraising to a powerHow much is 28? import math echo 2 ^ 8 Output: 256 If the resulting value is too big (e.g. 21024), then you get an However, using a 3rd-party module called "bigints", you can work with huge numbers. import bigints # nimble install bigints let big = bigints.pow(2, 1024) echo big Output: 17976931348623159077293051907890247336179769789423065727343008115773267580550 09631327084773224075360211201138798713933576587897688144166224928474306394741 24377767893424865485276302219601246094119453082952085005768838150682342462881 473913110540827237163350510684586298239947245938479716304835356329624224137216 (It's one line actually, but wrapped for easier reading). |
Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |