I think about something for developers, tool that helps for formatting, or checking some things.
This have very few similar projects:
General idea:
Thanks @mathprocessing Can you give some information about the second one? some math tools that works with bigintegers or bigrationals (i can help)
some math tools that works with bigintegers or bigrationals (i can help)
Something like this but for go
Main idea: A lot of libraries exist that performs operations only with floats and calculations have unpredictable error. And some libraries can be "moved" to rational domain.
Example of code:
const { r } = require('./my-big-rat'); console.log(0.2 + 0.1); // 0.30000000000000004 const some = r(0.2).add(r(0.1)); console.log(some); // 3/10 console.log(some.toDecimal()); // 0.3
Got it. I'll do so research about it. Thanks
Go had big.Int, big.Rat and big.Float from the beginning. stdlib package: math/big
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think about something for developers, tool that helps for formatting, or checking some things.
This have very few similar projects:
General idea:
Thanks @mathprocessing
Can you give some information about the second one?
some math tools that works with bigintegers or bigrationals (i can help)
Something like this but for go
Main idea: A lot of libraries exist that performs operations only with floats and calculations have unpredictable error. And some libraries can be "moved" to rational domain.
Example of code:
Got it. I'll do so research about it. Thanks
Go had big.Int, big.Rat and big.Float from the beginning.
stdlib package: math/big