You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I believe e.g. (/ 9 2) evaluates to 4. I’ve read that float support is unlikely to happen for portability reasons, but ratios could offer a middleground.
The text was updated successfully, but these errors were encountered:
Will there be a way to easily exclude floats from the numerical stack, for systems such as microcontrollers where the float routines would increase the binary size considerably?
yes ! This will be done through the feature system of ribbit. To have proper floats, you will need to enable the "float" feature.
It will use the underlying implementation when available. For example, if running on the C RVM, the already existing implementation of floats can be reused. Only conversions between Scheme and C need to be handled.
For hosts that don't have native support for floats, I'm not yet sure what we are going to do as emulating them would be quite a challenge and would probably result in pretty slow implementation of IEEE-754 floats. Maybe a scheme library that support ratios could be a good middle-ground
Currently, I believe e.g. (/ 9 2) evaluates to 4. I’ve read that float support is unlikely to happen for portability reasons, but ratios could offer a middleground.
The text was updated successfully, but these errors were encountered: