danilopedraza / symstatic

The Symstatic programming language code repository
https://symstatic.org/book
GNU General Public License v3.0
2 stars 0 forks source link

Arbitrary precision numbers #36

Closed danilopedraza closed 1 month ago

danilopedraza commented 1 month ago

Right now the language only has 64-bit signed integers. I need to add arbitrary precision numbers. This includes:

I'm not sure if I should mix BigInts and BigDecimals into one type, or have them separated.

danilopedraza commented 1 month ago

I decided that I'm going to add this feature through libraries. I considered one option: the num library. There is also a library called bigdecimal-rs which was originally meant to be included in num. I need it since num does not have BigDecimals.

danilopedraza commented 1 month ago

Also, I'm going to make integers and decimals different types.

danilopedraza commented 1 month ago

Pending tasks:

danilopedraza commented 1 month ago

Done.