Giter VIP home page Giter VIP logo

fp's People

Contributors

biojppm avatar jk-jeon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fp's Issues

Unnecessary Check

Checking here is not needed. There is no instance where shift_amount of 0 is passed. Besides the result is the same.

Uninitialised Variables

Following variables do not seam to be explicitly initialised: is_closed, is_left_closed in both policy.h files.

[feature request] support C++11

Thanks for your thorough work!

Would you consider accepting a MR for supporting C++11? if constexpr is really handy, but since it is not allowed in C++11, I could rewrite with SFINAE. But the code would be uglier and less readable as a result.

If that would be too much for you, maybe having a permanent cpp11 branch would do?

Looking for ftoa examples

Hi there!

I'm looking for ftoa examples similar to the function described in this article:
https://www.geeksforgeeks.org/convert-floating-point-number-string/

Here is the function prototype taken from this article:

/**
Converts a floating-point number to a string with a given number of digits considered after the point.
\param n          --> Input Number
\param res[]      --> Array where output string to be stored
\param afterpoint --> Number of digits to be considered after the point.
*/
void ftoa(float n, char* res, int afterpoint);

I'm able to use the provided implementation but I was wondering how I could achieve the same thing with your fp library or more directly with dragonbox.
My need would be of course to use the fastest existing implementation.

Any help is welcome, thanks!

Current TODO list

  • Add CI scripts.
  • Turn from_chars_unlimited_precision into one-pass for limited precision, two-pass for unlimited precision.
  • Optimize from_chars_limited_precision and from_chars_unlimited_precision.
  • Implement fixed-point/general formatting routines.
  • Correctly implement policies. Implement an interface of to_binary_limited_precision and ryu_printf specialized for the usage in unlimited-precision parsing. (Avoid needless packing into/extracting from IEEE-754 formats.)
  • Test against Microsoft STL's <charconv> dataset.
  • Determine between header-only and static library; properly separate things that will reside in headers and things that will be compiled.
  • Write documents on algorithm/implementation.
  • Write documents on API.
  • Think of an algorithm for fixed-precision binary-to-decimal conversion that use fewer amount of static data; it is desirable to make it less than 10KB. (Currently, it is possible to get about 26KB by tweaking Ryu-printf a bit.)

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.