Search packages, repositories and app categories

Package detailsv1.1.1

fixnum

Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
11.6M
Likes
69
Pub points
150

Install package

flutter pub add fixnum

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The fixnum package provides 32-bit and 64-bit signed fixed-width integer types that ensure consistent behavior across Dart's native and JavaScript runtimes. It addresses discrepancies in integer handling between platforms, particularly in web environments where JavaScript uses floating-point numbers for integers. This library is ideal for applications requiring predictable arithmetic and bitwise operations regardless of the execution environment.

Use cases

  • Cross-platform integer consistency
  • Web and native integer synchronization
  • Cryptographic operations
  • Network protocol implementations
  • Binary data processing
  • Low-level system programming

Key features

  • Fixed 32-bit and 64-bit integer types
  • Consistent overflow behavior
  • Bitwise operation support
  • JavaScript runtime compatibility
  • No external dependencies
  • Minimal performance overhead

Suitable for

  • Developers targeting multiple platforms
  • Applications requiring precise integer arithmetic
  • Systems programming in Dart
  • Interoperability with binary protocols
  • Projects needing deterministic integer behavior

Considerations

  • Not needed for basic integer use cases
  • May introduce slight overhead for simple operations
  • Requires explicit import for fixed-width types
  • Limited to signed integers only
  • Not suitable for arbitrary-precision arithmetic

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

Categories

Source repository

Projects using this package