streal
is the perfect (eventually) drop-in replacement for floats or doubles, and maybe even integers! It has INFINITE precision (only limited by memory (in theory eventually, anyway)) and INFINITE bounds (limited by memory) How does it work? It's simple! How do you read numbers? As 0s and 1s? Bits and bytes? WRONG. (probably) YOU most likely read numbers in decimal format, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Why not make computers do the same, then they can achieve precision like a person! Probably!
Using heap allocated std::string
objects and loads of integer arithmetic just to do basic streal
arithmetic! Force yourself to optimize the rest of your program to the point you ascend past being a feeble programmer, and become an unstoppable super programmer! (BECOME A 10x DEVELOPER WITH THIS LIBRARY!!!!!!!!!!!!!! FREEE!!!!!!! (REAL)) A reminder: No claims made in this document is guaranteed what-so-ever. It is not guaranteed streal
will not set your house on fire, for example.
Probably filled with errors, forgotten corner-cases and missing many opportunities for cleanliness. Nested if statements, repeated if statements, loads of function jumping, recursiveness, nested switch statements, illogical syntax, missing functions, hundreds of lines long functions filled with repetitive nonsense, little to no testing, little to no useful comments, useless exception throwing, etc. Dangerously hard to read code is great, because of a few reasons:
- Have an issue with the library and want to read the source? Challenge your mind by having to navigate through the spaghetti challenge!
- Want to contribute or make personal changes to extend
streal
's capabilities? Challenge your creative brain muscles by having to figure out how to extend a library not meant for extension without touching the code! - Need to ensure
streal
functions correctly, with no security issues, vulnerabilities, errors, mistakes, and/or bugs? Improve your skill trying to readstreal
PERFECT for beginners!
C++ is my favourite language.
Being a drop in replacement for floats and doubles!
Add streal
to your company code base, and have a nice and long chat with your manager and/or co-workers!
An extremely permissive license you may read in the license file probably!