Sebastian Ullrich
7fbe8e3b36
fix: Inhabited Float produced a bogus run-time value ( #6136 )
...
This PR fixes the run-time evaluation of `(default : Float)`.
2024-11-20 10:43:59 +00:00
TomasPuverle
994cfa4c74
doc: update documentation and tests for toUIntX functions ( #5497 )
...
Update documentation on functions to reflect actual behavior.
Add tests to ensure said behavior is as documented.
Closes #5483
2024-09-29 08:11:04 +00:00
Sebastian Ullrich
dbe1c7f459
fix: make ^ a right action, add NatPow and HomogeneousPow
2023-11-12 16:57:51 +11:00
Fynn Schmitt-Ulms
064ab16791
feat: Float.abs function ( #1514 )
2022-08-25 18:45:46 -07:00
Mario Carneiro
9de477ecf9
feat: add more float functions
2022-08-12 13:12:59 -07:00
Mario Carneiro
94f85ae649
fix: don't show NaN sign info in Float.toString
2022-08-12 08:21:47 -07:00
Mario Carneiro
d8c6c827fe
fix: use saturating casts in lean_float_to_uint8 to avoid UB
2022-08-11 13:30:22 -07:00
Andrew Kent
4f6bb1feb6
feat: add Float.ofInt
2021-01-15 15:45:28 +01:00
Leonardo de Moura
db9e390b4d
chore: remove new_frontend from tests
2020-10-25 09:16:38 -07:00
Leonardo de Moura
f80345a6d4
chore: move tests to new frontend
2020-10-10 07:41:04 -07:00
Leonardo de Moura
705530b62b
fix: remove DecidableEq for Float
...
We cannot implement `DecidableEq Float` using C equality for
`double`. Reason: the C implementation is not even reflexive.
If we need `DecidableEq Float`, we will need to provide our own
implementation (i.e., a wrapper around the one provided by the
hardware). In this commit, we implement `HasBeq Float` instead.
cc @dselsam
2020-04-06 14:10:18 -07:00
Leonardo de Moura
582fe3ac8a
test: add test that exposed unboxing issue
2020-04-03 18:24:48 -07:00
Leonardo de Moura
51f1893a8c
test: add basic float tests
2020-04-03 17:39:47 -07:00