Replies: 1 comment 1 reply
-
Hi @rdewell. Thank you for your question. I've been trying to decide what to do with this library since it doesn't fully address all use cases properly. The changes in main are quite disruptive. It moves away from relying on doubles, in order to embrace full-on string-only initialization and encoding/decoding. This is a step down from the current release, but I suspect it might be the safest way to go forward. // latest release (1.1.0)
let foo: PreciseDecimal = 3.133 // valid, not guaranteed for 6+ decimal places
// main (~= 2.0.0)
let foo: PreciseDecimal = 3.133 // invalid
let foo: PreciseDecimal = "3.133" // valid, guaranteed for any amount of decimal places This also makes The only reason I haven't made a breaking release with these changes is doubt. So since you asked, I'd kindly like to know your thoughts on this to help me make a decision. Does my rationale make sense to you? |
Beta Was this translation helpful? Give feedback.
-
Hi @davdroman – looks like quite a few good changes have been made since the last release. Any chance you could tag a new version, or should we stick with "main" for the time being? Thanks for the very useful and necessary work!
Beta Was this translation helpful? Give feedback.
All reactions