DEV Community

Cover image for CALU: a basic char based arithmetic calculator (in progress)
Wesley
Wesley

Posted on

1

CALU: a basic char based arithmetic calculator (in progress)

A little test program I'm writing that's not dependent on actual integers but rather using string based numbers, breaking the 4.29b/18.4t limit
It's being built for Windows and Linux, and is completely C standard library compliant
So far, I just got fully working addition to work and it will only do math with positive numbers
The way digits work is dynamic but have a static limit, so for example, 100+100000 shifts the digits for 100 to the right
These number strings can also have padded zeroes
Currently, I have this program set to support 256 digits

code:
https://github.com/donnaken15/CALU/blob/main/CALU.C
man:
https://github.com/donnaken15/CALU/blob/main/CALU.1

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay