Fix bugs in alg_d found when testing power

These bugs involved not taking into account that fractional values could
have leading zeros, so quotients were both wrong and taking forever to
compute.
1 file changed
tree: 9d613ce6ebff8edbeeec5ad3d340ec4fbe632ad0
  1. include/
  2. src/
  3. tests/
  4. .gitignore
  5. LICENSE.md
  6. Makefile
  7. NOTICE.md
  8. README.md
README.md

bc

This is an implementation of POSIX bc that implements GNU bc extensions.

This bc is Free and Open Source Software (FOSS). It is licensed under the BSD 3-clause License, with a special exemption for the Toybox project to use it under the BSD 0-clause License.

Status

This bc is not even in alpha stage yet, so it is not ready for use. However, at this time, it can do basic math operations (+, -, *, /, %) on constants.

Language

This bc is written in pure ISO C99.

Git Workflow

This bc uses the git workflow described in this post. Developers who want to contribute are encouraged to read that post carefully.

For feature branches, it uses rebase + merge --no--ff (option 3). It also uses a develop/master split. (Main development is on develop, and master just points to the latest tagged release to make it easy for users to get the latest release.)

This bc includes scripts and a .gitconfig that helps manage the workflow. New contributors should familiarize themselves with them.

Commit Messages

This bc uses the commit message guidelines laid out in this blog post.

Semantic Versioning

This bc uses semantic versioning.

Contents Listing

Every folder contains a README file which lists the purposes for the files and folders in that directory.

Contents

Files:

LICENSE.md      A Markdown the BSD 3-clause License.
NOTICE.md       List of contributors and copyright owners.

Folders:

docs        Contains all of the documentation (currently empty).
include     Contains all of the public header files.
src         All source code.
tests       Tests.