integer 1.0.0 copy "integer: ^1.0.0" to clipboard
integer: ^1.0.0 copied to clipboard

outdated

Use custom bitwidth integers like uint16 or int32 seamlessly via getters and datatypes

example/example.dart

import 'package:integer/integer.dart';

void main() {
  /// A Signed Integer that is bound within the limits of 32 bits
  print(34234324.int32);

  /// An Unsigned Integer that is bound within the limits of 8 bits
  ///
  /// Remember to enclose negative integer literals in parenthesis, or else
  ///  the results will not be as expected
  print((-34234).uint8);

  /// Provide custom bit-width if required like this
  print((-4567233343).intX(22));

  /// Or like this
  print((-4567233343).uintX(48));
}
3
likes
0
points
54
downloads

Publisher

verified publisheraldrinsartfactory.com

Weekly Downloads

Use custom bitwidth integers like uint16 or int32 seamlessly via getters and datatypes

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on integer