Logo

Programming-Idioms

History of Idiom 66 > diff from v8 to v9

Edit summary for version 9 by :

Version 8

2015-08-22, 15:51:20

Version 9

2015-08-23, 10:35:24

Idiom #66 Big integer exponentiation

Calculate the result z of x power n, where x is a big integer and n is a positive integer.

Idiom #66 Big integer exponentiation

Calculate the result z of x power n, where x is a big integer and n is a positive integer.

Imports
import "dart:math";
Code
var z = pow(x, n);
Doc URL
https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:math#id_pow