Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:core
  3. BigInt
  4. toInt abstract method
toInt
description

toInt abstract method

inttoInt()

Returns thisBigInt as anint.

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

Warning: the clamping behaves differently between the web andnative platforms due to the differences in integer precision.

Example:

var bigNumber = BigInt.parse('100000000000000000000000');print(bigNumber.isValidInt); // falseprint(bigNumber.toInt()); // 9223372036854775807

Implementation

int toInt();
  1. Dart
  2. dart:core
  3. BigInt
  4. toInt abstract method
BigInt class

[8]ページ先頭

©2009-2025 Movatter.jp