Documentation
FormalConjecturesForMathlib
.
Data
.
Real
.
NearestInt
Search
return to top
source
Imports
Init
Mathlib.Algebra.Order.Round
Mathlib.Data.Real.Archimedean
Mathlib.Data.Real.Basic
Imported by
distToNearestInt
source
noncomputable def
distToNearestInt
(
x
:
ℝ
)
:
ℝ
The distance from a real number to the nearest integer.
Equations
distToNearestInt
x
=
|
x
-
↑
(
round
x
)
|
Instances For