A library for parsing and encoding IEEE-754 binary floating point numbers.

Overview

Dart IEEE754 library

pub

This library provides decoding and transforming IEEE754 floating point numbers in binary format, double format, or as exponent and mantissa.

Examples of use cases are serializing and deserializing formats which use the half or quad format, or encoding and converting numbers from arbitary exponents and mantissas.

Usage

API reference

Example: Serializing to least precision

void serializeDouble(double value) {
    final floatParts = FloatParts.fromDouble(value);
    if (floatParts.isFloat16Lossless) {
        _writeFloat16(floatParts.toFloat16Bytes());
    } else if (floatParts.isFloat32Lossless) {
        _writeFloat32(floatParts.toFloat32Bytes());
    } else if (floatParts.isFloat64Lossless) {
        _writeFloat64(floatParts.toFloat64Bytes());
    }
}
You might also like...

An intuitive Token Parser that includes grammar definition, tokenization, parsing, syntax error and debugging. Implementation based on Lexical Analysis for Dart.

Token Parser An intuitive Token Parser that includes syntax/grammar definition, tokenization and parsing. Implementation based on Lexical Analysis. Re

Dec 15, 2022

A class for parsing strings using a sequence of patterns.

This package exposes a StringScanner type that makes it easy to parse a string using a series of Patterns. For example: import 'dart:math' as math; i

Nov 8, 2022

Fluter-json - App Demonstrating JSON Data Parsing with various flutter widgets

Fluter-json - App Demonstrating JSON Data Parsing with various flutter widgets

users_list Flutter App to Demonstrate JSON Parsing Getting Started This project is a starting point for a Flutter application. A few resources to get

Jul 10, 2021

Flutter RSS feed parsing - A demo application of flutter which parse RSS XML contents to the flutter application

Flutter RSS feed parsing - A demo application of flutter which parse RSS XML contents to the flutter application

Flutter RSS feed parsing demo This is demo application of flutter which shows ho

Nov 15, 2022

A flutter plugin to draw the coordinates on the widget and as well as to find the given point is inside a list of coordinates or not.

A flutter plugin to draw the coordinates on the widget and as well as to find the given point is inside a list of coordinates or not.

Draw On A flutter plugin to draw the coordinates on widget and as well as to find the given point is inside a list of coordinates or not. For Draw on

Apr 5, 2022

This package will animate a floating action button at the center and icons at the bottomNavigationBar using AnimatedContainer and SlideTransition respectively.

This package will animate a floating action button at the center and icons at the bottomNavigationBar using AnimatedContainer and SlideTransition respectively.

floating_bottom_bar This package will animate a floating action button at the center and icons at the bottomNavigationBar using AnimatedContainer and

Oct 10, 2022

This project is a starting point for a Flutter application.

calculadora A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if t

Aug 22, 2022

Point of Sale

Point of Sale

Contributors About ThePOS An open-source initiative that belongs to Gaza Tech Community to encourage the Gazans developer to share their knowledge wit

Jan 3, 2023

This project is a starting point for a Flutter application.

sorting_visulization Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this is your fi

Sep 2, 2022
Owner
null
A Mobile application developed with Flutter and Dart to do math operations with binary numbers.

Math operations with Binary Numbers Readme PT About this Project Mobile application developed with Flutter and Dart to do math operations as sum, subt

Manoel Ribeiro 3 Nov 3, 2020
IEEE DTU's Vihaan 5.0 website.

vihaan2022 IEEE DTU's Vihaan 5.0 website. Getting Started This project is a starting point for a Flutter application. A few resources to get you start

null 0 Dec 27, 2021
Dart library for decoding/encoding image formats, and image processing.

image Overview A Dart library providing the ability to load, save and manipulate images in a variety of different file formats. The library is written

Brendan Duncan 907 Dec 27, 2022
Dart library for parsing relative date and time.

Dateparser Dart library for parsing relative date and time. Examples just now a moment ago tomorrow today yesterday 10 days remaining 2 hours ago 2 mo

Mensch272 5 Sep 20, 2022
Low-level link (text, URLs, emails) parsing library in Dart

linkify Low-level link (text, URLs, emails) parsing library in Dart. Required Dart >=2.12 (has null-safety support). Flutter library. Pub - API Docs -

Charles C 60 Nov 4, 2022
Zooper flutter encoding utf16 - Helper classes to encode and decode UTF16 string to List

zooper_flutter_encoding_utf16 Helper classes to encode and decode UTF16 string t

Zooper 0 Feb 10, 2022
Plist parser - A Plist parser for Flutter supports XML and binary Apple Property list (plist) formats

Plist Parser for Flutter ?? A Flutter Plugin for Plist parser supporting XML and

dirablue ( gaku ) 4 Nov 17, 2022
Binary Decimal Converter with GetX

Conversor Binario Decimal con GetX En este ejemplo se usa la librería GetX para implementar el convertor binario decimal Usamos: Dependecy injection h

null 0 Nov 27, 2021
Imports resource files as string or binary literals in Dart code.

resource_importer Imports resource files as string or binary literals in Dart code. What? resource_importer probably is best described with an example

James D. Lin 0 Dec 3, 2022
A dart library to check if given point(s) are present inside polygon or not.

poly A library for checking if given point(s) is present inside Polygon or not. Contents Installation Examples Note: Instead of casting, use toListNum

Sacchi 9 Feb 25, 2022