Comments (1)
You first need to compile the library and link it into your project. The project comes with support for the build systems "scons" and "cmake". You should be able to find many tutorials on how to use those.
If you need a C interface, you will have to write a wrapper for the library. Again, there are many tutorials on the web for this. Depending on what exactly you need, you could also try to reuse the code that was used to benchmark when I wrote the paper (see below): http://florian.loitsch.com/publications/bench.tar.gz
Once you can compile the project and link it to your project, you want to look at https://github.com/google/double-conversion/blob/master/double-conversion/double-conversion.h. This file contains all the methods you need. For simplicity, you might want to start with the EcmaScriptConverter
which is exposed there. It provides the same conventions as JavaScript.
If you want to know, how exactly the conversion is happening, there is a paper here: http://florian.loitsch.com/publications/dtoa-pldi2010.pdf
Hope that helps.
from double-conversion.
Related Issues (20)
- make-ing library on Windows 10 HOT 11
- Maximum string length DoubleToStringConverter::EcmaScriptConverter() ToShortest? 26 chars? HOT 8
- kMaxFixedDigitsAfterPoint should be increased from 60 to 100 HOT 2
- StringToDoubleConverter::StringToDouble slower than dtoa HOT 3
- `StringToDoubleConverter::StringTo<FloatingPoint>` member function templates HOT 3
- Add generic (template) methods for `to_string` (float or double). HOT 2
- New tag/version since 2019? HOT 2
- [bug] ieee.h: Wrong QuietNaN bit check on mips* architectures HOT 1
- Kindly add installation of Windows debugger files (pdb)? HOT 5
- FastFixedDtoa incorrect rounding. HOT 1
- Fix -Wzero-as-null-pointer-constant warnings HOT 12
- Tag a v3.2.1 release? HOT 2
- Various warnings compiling with visual studio HOT 1
- Insecure API when using in React Native iOS app HOT 1
- Set GitHub Workflow permissions to read only HOT 1
- [vulnerability] CVE issues HOT 4
- Hash Pin Github Owned Actions HOT 3
- Enable OpenSSF Scorecard Action and Badge HOT 1
- question: does abseil-cpp cover double-conversion functionality HOT 1
- fatal: unable to access 'https://github.com/google/double-conversion.git/': CONNECT tunnel failed, response 403 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from double-conversion.