mirth-lang / mirth

Compiler for the Mirth programming language.
BSD Zero Clause License
447 stars 14 forks source link

Add floating point support #314

Closed casuallyblue closed 3 months ago

casuallyblue commented 4 months ago

This is the initial steps of floating point support for mirth. I'm uploading it before it is completely done for feedback before I implement any further. This includes a partial implementation of a mandelbrot set renderer example.

typeswitch-dev commented 4 months ago

Great work! The only note I have is that I'd like the name of the float type in mirth be:

Once that is renamed, I think it would be ok to merge this PR, even without single-precision!

casuallyblue commented 4 months ago

Great work! The only note I have is that I'd like the name of the float type in mirth be:

* `Float64` for double-precision floats, and

* `Float32` for single-precision floats.

Once that is renamed, I think it would be ok to merge this PR, even without single-precision!

Everything's renamed, and I made the internal value be a float instead of storing as a string. Still figuring out why the windows build suddenly can't find snprintf even though it could before.

typeswitch-dev commented 3 months ago

Thanks @casuallyblue!