Average Error: 0.0 → 0.0
Time: 375.0ms
Precision: binary64
\[\mathsf{round} x\]
\[\mathsf{round} x\]
\mathsf{round} x
\mathsf{round} x
double code(double x) {
	return ((double) round(x));
}
double code(double x) {
	return ((double) round(x));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\mathsf{round} x\]
  2. Final simplification0.0

    \[\leadsto \mathsf{round} x\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(round x)"
  :precision binary64
  (round x))