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
Fixed point arithmetic seems to be used often in embedded systems and business logic. IMO this would be an attractive addition to the language.
If we only wanted to support binary numbers I would propose using the syntax Qm.f (where m is the number of magnitude bits and f is the number of fractional bits). Alternatively, types could be based on a builder to support complex features @FixedPoint(magnitude, fractional, saturate = false, decimal = false) .
The text was updated successfully, but these errors were encountered:
Fixed point arithmetic seems to be used often in embedded systems and business logic. IMO this would be an attractive addition to the language.
If we only wanted to support binary numbers I would propose using the syntax Qm.f (where m is the number of magnitude bits and f is the number of fractional bits). Alternatively, types could be based on a builder to support complex features
@FixedPoint(magnitude, fractional, saturate = false, decimal = false)
.The text was updated successfully, but these errors were encountered: