Comments (3)
One would have to dig through the underlying C library to see if there is an option to change the printing. I agree that the default format is annoying. (Maybe the decNumber library is better in this regard.)
from decfp.jl.
I've just had a look at the source and I don't think this can be changed although there are not many comments to help you with the reading. I also had a look at the paper behind the library and it is using the same notation so I guess there is nothing to do unless we want to modify the source (which I don't).
from decfp.jl.
@stevengj The decNumber package does allow you do convert to string from any of the formats, and let's you choose scientific or engineering notation (which seems to be what you are getting).
For example, decNumberToEngString and decNumberToString.
from decfp.jl.
Related Issues (20)
- disable InexactError for runtime parsing HOT 3
- export sigexp()
- Comparison with Integer
- Rounding when parsing strings HOT 6
- Doesn't precompile on 1.5.0-beta1 (or 1.6) HOT 6
- tag 1.0? HOT 4
- missing BigFloat conversions
- hash(T(Inf)) broken with current Julia master HOT 7
- TagBot trigger issue HOT 12
- SpecialFunctions.logabsgamma return type changed HOT 2
- support precision(x; base) in Julia 1.8
- use new Printf.tofloat interface (vs ini_dec/fix_dec)
- BigFloat construction from DecXX
- use per-task (not per-thread) flags, rounding mode, etcetera?
- Serialization broken after change to primitive types
- Use Requires.jl for SpecialFunctions? HOT 2
- the way DecFP decomposes converted floats is unpredictable HOT 10
- Make a new release? HOT 2
- release tags not being created? HOT 8
- Exact result of 2^20 + 2^-20 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 decfp.jl.