jk-jeon / fp Goto Github PK
View Code? Open in Web Editor NEWIEEE-754 binary-to-decimal and decimal-to-binary conversion library
IEEE-754 binary-to-decimal and decimal-to-binary conversion library
Checking here is not needed. There is no instance where shift_amount
of 0
is passed. Besides the result is the same.
Following variables do not seam to be explicitly initialised: is_closed
, is_left_closed
in both policy.h
files.
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?
How are cache and error numbers generated?
How are the cache numbers (this and this) and error (this) numbers generated?
These numbers are different from what is found in the dragonbox repo.
How does the performance compare with;
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!
from_chars_unlimited_precision
into one-pass for limited precision, two-pass for unlimited precision.from_chars_limited_precision
and from_chars_unlimited_precision
.to_binary_limited_precision
and ryu_printf
specialized for the usage in unlimited-precision parsing. (Avoid needless packing into/extracting from IEEE-754 formats.)<charconv>
dataset.10KB
. (Currently, it is possible to get about 26KB
by tweaking Ryu-printf a bit.)A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.