Coder Social home page Coder Social logo

bigdecimal-rs's Introduction

bigdecimal-rs

crate Documentation

minimum rustc 1.43

coverage build status - master build status - dev

Arbitary-precision decimal numbers implemented in pure Rust.

Usage

Add bigdecimal as a dependency to your Cargo.toml file:

[dependencies]
bigdecimal = "0.3"

Import and use the BigDecimal struct to solve your problems:

use bigdecimal::BigDecimal;

fn main() {
    let two = BigDecimal::from(2);
    println!("sqrt(2) = {}", two.sqrt().unwrap());
}

this code will print

sqrt(2) = 1.414213562373095048801688724209698078569671875376948073176679737990732478462107038850387534327641573

Improvements

Work is being done on this codebase again and there are many features and improvements on the way.

About

This repository contains code originally meant for a bigdecimal module in the popular num crate, but was not merged due to uncertainty of what the best design for such a crate should be.

License

This code is dual-licensed under the permissive MIT & Apache 2.0 licenses.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Community

Join the conversation on Zulip: https://bigdecimal-rs.zulipchat.com

bigdecimal-rs's People

Contributors

akubera avatar rubdos avatar kestred avatar therustmonk avatar lucab avatar pymongo avatar niclashoyer avatar leoyvens avatar chmln avatar iterion avatar aidanhs avatar eijebong avatar billwanjohi avatar dpbriggs avatar thargor avatar yrashk avatar cboecking 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.