/Dart 2

toInt method

int toInt ()

Returns this BigInt as an int.

If the number does not fit, clamps to the max (or min) integer.

Warning: the clamping behaves differently on dart2js, dev compiler, and the VM, due to the differences in integer precision.


int toInt();

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.