Documentation
Interval
.
Floating
.
Dyadic
Search
return to top
source
Imports
Init
Interval.Floating.Basic
Imported by
Floating
.
vald
Floating
.
toRat_vald
Conversion between
Dyadic
and
Floating
#
source
def
Floating
.
vald
(
x
:
Floating
)
:
Dyadic
The exact
Dyadic
that a
Floating
represents
Equations
x
.
vald
=
Dyadic.ofIntWithPrec
(↑
x
.
n
)
(
2
^
63
-
x
.
s
.
toInt
)
Instances For
source
@[simp]
theorem
Floating
.
toRat_vald
(
x
:
Floating
)
:
x
.
vald
.
toRat
=
x
.
valq