This PR adds support for floating-pt numbers. It entails adding a new built-in type, Float, and corresponding operations; +~, -~, *~, /~, <~, >~ and ==~. For completeness, I also added an operation for equality over integers.
It also has two functions to convert from Int to Float and vice versa, toFloat and round respectively. round f will round f to the nearest Int.
This PR adds support for floating-pt numbers. It entails adding a new built-in type,
Float
, and corresponding operations;+~
,-~
,*~
,/~
,<~
,>~
and==~
. For completeness, I also added an operation for equality over integers.It also has two functions to convert from
Int
toFloat
and vice versa,toFloat
andround
respectively.round f
will roundf
to the nearestInt
.