pub repository
mirror.p-hatan.irfixnum
1.1.0Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes.
Readme
A fixed-width 32- and 64- bit integer library for Dart.
Provides data types for signed 32- and 64-bit integers. The integer implementations in this library are designed to work identically whether executed on the Dart VM or compiled to JavaScript.
Publishing automation
For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.
Changelog
1.1.0
- Add
tryParseRadix,tryParseIntandtryParseHexstatic methods to bothInt32andInt64. - Document exception and overflow behavior of parse functions,
and of
toHexString. - Make
Int32parse functions consistent with documentation (accept leading minus sign, do not accept empty inputs). - Update the minimum SDK constraint to 2.19.
- Update to package:lints 2.0.0.
1.0.1
- Switch to using
package:lints. - Populate the pubspec
repositoryfield.
1.0.0
- Stable null safety release.
1.0.0-nullsafety.0
- Migrate to null safety.
- This is meant to be mostly non-breaking, for opted in users runtime errors will be promoted to static errors. For non-opted in users the runtime errors are still present in their original form.
0.10.11
- Update minimum SDK constraint to version 2.1.1.
0.10.10
- Fix
Int64parsing to throwFormatExceptionon an empty string or single minus sign. Previous incorrect behaviour was to throw aRangeErroror silently return zero.
0.10.9
- Add
Int64.toStringUnsigned()andInt64.toRadixStringUnsigned()functions.
0.10.8
- Set SDK version constraint to
>=2.0.0-dev.65 <3.0.0.
0.10.7
- Bug fix: Make bit shifts work at bitwidth boundaries. Previously,
new Int64(3) << 64 == Int64(3). This ensures that the result is 0 in such cases. - Updated maximum SDK constraint from 2.0.0-dev.infinity to 2.0.0.
0.10.6
- Fix
Int64([int value])constructor to avoid rounding error on intermediate results for large negative inputs when compiled to JavaScript.new Int64(-1000000000000000000)used to produce the same value asInt64.parseInt("-1000000000000000001")
0.10.5
- Fix strong mode warning in overridden
compareTo()methods.
No changelog entries for previous versions...
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add fixnumpubspec.yaml
name: fixnum
version: 1.1.0
description: >-
Library for 32- and 64-bit signed fixed-width integers with consistent
behavior between native and JS runtimes.
repository: https://github.com/dart-lang/fixnum
environment:
sdk: '>=2.19.0 <3.0.0'
dev_dependencies:
lints: ^2.0.0
test: ^1.16.0
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.6.8 | 2013-07-19T20:55:36.394Z | Download | 306854b2bde3a8f89265141ca3ed4fe1a364c481571bec0be2e79a22d4198a32 |
| 0.6.9 | 2013-07-22T15:13:58.477920Z | Download | eb52659b2d8628b65fd21005db18b6b3895e35c2efb9b4d1f2510bb232fe64d2 |
| 0.6.9+2 | 2013-07-24T03:58:40.550650Z | Download | b4afb24077b71106f70285df5b2f048e537f2fe033e2ba98b55ef4e367bacda2 |
| 0.6.11 | 2013-07-25T05:09:47.354960Z | Download | 9ae1877ca2581a7ec144093c01537d24aa83ba1cbc64549d7927f21d73f7e325 |
| 0.6.12 | 2013-07-26T20:06:01.546680Z | Download | 40ed526005c460a05a9991641e97d9d19cb33e0d4f252d488c5c51335ef42b2e |
| 0.6.13 | 2013-07-30T21:56:03.868830Z | Download | 1d60c836c606c798227d61fb7a5f1b05e0f144a6d4ae46676d1b3c377c9f1456 |
| 0.6.14 | 2013-08-02T16:24:38.829450Z | Download | 1dfa86f4c7ed819af7478aef665cb00f800aa054e0dcc86a5878caab0283a7c5 |
| 0.6.15+2 | 2013-08-05T22:49:36.078300Z | Download | cb00710c4c0344e55fc4faa76f15855e129149681252fbacb0eb2254af678f50 |
| 0.6.15+3 | 2013-08-06T20:12:59.732060Z | Download | b8e69e249cd3707847960fa623f57b5d8b804dda3797d541573d30c6904ef79c |
| 0.6.17 | 2013-08-10T17:35:23.232620Z | Download | 0a67b9cbbc2a9a48bda91da6383ed45896ae9503660aaa638c9cdbdf5dec1734 |
| 0.6.17+2 | 2013-08-12T22:21:31.423340Z | Download | 590aa49809751fefe5ad3dbcca8419d9fcbd02584a9b77bc47fb386169cf49d1 |
| 0.6.19 | 2013-08-19T16:10:46.248270Z | Download | d641fc865f91c579cf53539048bd126f4fcad627b81ed62237004b3c28b399bc |
| 0.6.20+1 | 2013-08-22T18:19:09.191880Z | Download | b432cb8281dc32ae765389172d22f1a364b1263a1e50a1b7dc0719eb6d389be3 |
| 0.6.21+3 | 2013-08-26T17:42:27.732990Z | Download | 390dfde624131f82ab070ede956347ab2700d4895a8ae3f52f82246b694f8fd5 |
| 0.7.0 | 2013-08-28T19:28:56.089120Z | Download | b7fb8cf17ffc4cb423c72b46593682cd5c203e06370028c9a7d25cd27504e9ec |
| 0.7.1 | 2013-09-03T15:50:10.759210Z | Download | b79072ef4ec57677636743fd41b21cc12271c9c285f826c22576751764c42eb3 |
| 0.7.2 | 2013-09-06T15:50:56.080750Z | Download | f22ce72fbee35ed294be8d4d8fa8129d191dcc20ba766e22bafeb0e775f7da82 |
| 0.7.2+1 | 2013-09-08T15:47:04.638550Z | Download | ec68233e60bbe986dfd089b780d3ef27041a431f1a39f2b63962f04c20710dda |
| 0.7.3+1 | 2013-09-16T15:43:24.413680Z | Download | eb5000acb9a6b3dbc03e0c153b457e79f149ca2f06908a54c977ba8a9b015118 |
| 0.7.4 | 2013-09-18T03:03:35.417880Z | Download | 9457faeabbad83419fddb174cb43fa6b5c2da0f86a603b10a0992ea8e6f90859 |
| 0.7.5 | 2013-09-20T23:26:40.950510Z | Download | 42f7485e9ad5d0688d67fcf231705dd274f7bebfc5fd556e9ec9bec86ad55401 |
| 0.7.6 | 2013-09-27T14:56:24.866270Z | Download | 7f867aa92142066abb0ad5049b86181f301204a09b49e0e2b9e1e857510cfa43 |
| 0.7.6+4 | 2013-10-01T23:47:59.987350Z | Download | 5b9f7957520738ad28b09f428e2842e326b9c06e3ada6c78d797a66f36af6723 |
| 0.8.0 | 2013-10-03T16:26:41.497860Z | Download | 697ed096fd9b7d3b8055d09583dc673ba7b97f571ed59f65c389753c026f4976 |
| 0.8.1 | 2013-10-04T21:54:03.242430Z | Download | e968f0eacbaeb957310b8b3f02122d59a1dfb2e38507072a41141e0dcfc4d8fa |
| 0.8.2 | 2013-10-14T21:48:58.951160Z | Download | 726b3330ba0debe367b28bdb676770f9e0e7096ba19b12c393848a10da4f5417 |
| 0.8.3 | 2013-10-17T16:00:09.139430Z | Download | edb3980f16df475b202a297cb6a2411d9ab0b076537fca562a20e4b613aabc78 |
| 0.8.4 | 2013-10-19T21:08:27.928030Z | Download | 56ab5a3b2882845db8cd196c770c267f54d9df51bf84529fd29ee6b5a7b0551d |
| 0.8.5 | 2013-10-21T15:50:08.398100Z | Download | 24a8f8d46f8a24430d94427222f7897ad63bfa28d98e5766c2ece0e36b39ffd6 |
| 0.8.6 | 2013-10-24T08:18:19.555090Z | Download | 6bcde9952c261b8b1d50c01aead70d87c3f39c9674913e0cf3d269159394e211 |
| 0.8.7 | 2013-10-28T14:31:53.056610Z | Download | 15a0b273af8f66ef18ba6dfff3f0d6c623654fcf8d85b39804a572993ad43c2d |
| 0.8.8 | 2013-10-30T03:29:10.784170Z | Download | 96920f184965ef1e1d0c787a7149d1ca98bb24de4c20a567ee58e53676088b00 |
| 0.8.9 | 2013-10-31T15:15:31.680230Z | Download | 697c52c89d801cc4d5e01485b94bc98bbade3f7693776f2a3857be6b6b1b4ea6 |
| 0.8.10 | 2013-11-01T19:22:57.105440Z | Download | 9653a3ef3cce3d89e863e7b6645fd2c2d02d3c08a3a87e0738103d3586df7405 |
| 0.8.10+3 | 2013-11-04T16:48:44.797040Z | Download | bf12cd04689a739f5e38277bdf020fb6d114bab69de0a87f76c42b0ae5d3b1e5 |
| 0.8.10+4 | 2013-11-05T16:04:28.280240Z | Download | ca1a381be03538f30ae2c75eddbf7a980cfce077cc046d4a6e1428cfb77d164e |
| 0.9.0-dev+1 | 2014-12-09T17:49:25.302450Z | Download | cde682b77dad9ff7ba37e3f876c03d6ee039b50dc116b033d31a6ab5333e4fc9 |
| 0.9.0 | 2013-11-06T19:31:03.485800Z | Download | 0af4242dddc9363f35caca6c177bf515b3a670db369aeae16a67642625fe3675 |
| 0.9.1 | 2014-12-09T17:50:51.878920Z | Download | 33bec55dc9dd888b5a0d8c6aa85b3cc2001d09e661d82f49c1926045830171cc |
| 0.9.1+2 | 2015-02-10T01:45:05.774760Z | Download | 0b6fe3e99bb8068f9f83718dc9b2f5a979f39aec8af6a9096e19fdfbc8a77423 |
| 0.10.2 | 2015-09-04T19:06:01.581Z | Download | 2f7c53627c260951d20464867e3ce7b4238604b8b0a0529b1ca94f6e2ec352c8 |
| 0.10.4 | 2016-04-21T17:17:56.179Z | Download | 45f110358eebaba142adc396f0df7a711ef060361ae050668725379451956ad2 |
| 0.10.5 | 2016-05-10T23:16:54.955Z | Download | 9224467e23adf287f96559459152df4b26b0249c4f89c2c7d8675361ba60ed44 |
| 0.10.6 | 2017-07-19T19:40:32.584580Z | Download | 716f606b26cca4be18b88e55504e784a6a348533ac6eb3f3356583daf5730122 |
| 0.10.7 | 2018-02-06T23:20:47.977486Z | Download | 899a41d88cb0a7d38ff06bb7fb70a45a1c343dac939fffe02a0d23e2306db059 |
| 0.10.8 | 2018-07-18T17:11:26.539747Z | Download | be44a64e37c5559ba5ad9f8e471faf1ea73283ad72c9e35cbba1f98c18b2f007 |
| 0.10.9 | 2018-11-07T03:15:39.173989Z | Download | f8a7dd56a7f6099742eabeddcdcb1733dc787fac451d86f00dcc81e82e32b1d3 |
| 0.10.10 | 2019-10-28T23:24:05.399928Z | Download | 6498ef3184fbeee01409f0555829ebe44aa85242e7938115990ea0df5f4bbb09 |
| 0.10.11 | 2019-10-28T23:16:00.435217Z | Download | 3b298dacb1898a8f5fddec19388b899b0f13195066b89fa66391e5e92f6c2052 |
| 1.0.0-nullsafety.0 | 2020-11-10T16:36:57.335414Z | Download | 73b630ae67a700961c1d60b5cb7cf775cf22bf19b3d58cb30bfd27ed98256f5b |
| 1.0.0 | 2021-02-05T19:04:14.438100Z | Download | 6a2ef17156f4dc49684f9d99aaf4a93aba8ac49f5eac861755f5730ddf6e2e4e |
| 1.0.1 | 2022-05-12T18:00:57.280369Z | Download | 04be3e934c52e082558cc9ee21f42f5c1cd7a1262f4c63cd0357c08d5bba81ec |
| 1.1.0 | 2023-01-30T20:51:22.749616Z | Download | 25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1 |
| 1.1.1 | 2024-10-16T08:12:32.914801Z | Download | b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be |
Dependencies
No direct dependencies declared.