Giter VIP home page Giter VIP logo

mgriebling / decimalnumbers Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 3.22 MB

A Swift implementation based on the Intel Corp Decimal Floating-Point Math Library v2.2. This library uses Binary Integer Decimal (BID) encoded numbers in its implementation. Conversions to/from Densely Packed Decimal (DPD) encoded numbers are provided.

Swift 100.00%
decimal decimal-numbers decimal128 decimal32 decimal64

decimalnumbers's Introduction

Decimal Number Libraries

A Swift implementation based on the Intel Corp Decimal Floating-Point Math Library v2.2. This library uses Binary Integer Decimal (BID) encoded numbers in its implementation of the Decimal32, Decimal64, and Decimal128 numbers. Conversions to/from Densely Packed Decimal (DPD) encoded numbers are provided.

This library is preliminary and has not been completely tested. Please feel free to report any issues. The Decimal32 implementation should be working and is tested.

DecimalFloatingPoint Protocol

A new DecimalFloatingPoint protocol is included with this library with similar requirements to the BinaryFloatingPoint protocol except with specific requirements for decimal floating point types. Decimal32, Decimal64, and Decimal128 are compliant to both this protocol and the general-purpose FloatingPoint protocol.

Dependencies

This library requires a UInt128 implementation to be present. The included UInt128 is derived from one available in the Swift runtime (but still unreleased). Note: It also contains an Int128 implementation which is not used but available.

NOTE

Not complete. Decimal32 has been tested and is working. Decimal64 and Decimal128 still need testing and work.

decimalnumbers's People

Contributors

mgriebling avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.