ieee754_dart

Last updated:

0 purchases

ieee754_dart Image
ieee754_dart Images
Add to Cart

Description:

ieee754 dart

JS implementation of ieee754 in Dart.
Features #
Contains two methods to read and write.
Getting started #
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add ieee754_dart
With Flutter:
$ flutter pub add ieee754_dart
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
ieee754_dart: ^0.0.11
Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:ieee754_dart/ieee754_dart.dart';
Usage #
The Ieee754 class has the following functions:
Ieee754.read = function (buffer, offset, isLE, mLen, nBytes)
Ieee754.write = function (buffer, value, offset, isLE, mLen, nBytes)
copied to clipboard
The arguments mean the following:

buffer = the buffer(Uint8List)
offset = offset into the buffer
value = value to set (only for write)
isLe = is little endian?
mLen = mantissa length
nBytes = number of bytes

Additional information #
The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point computation. Read more.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.