waldo icon indicating copy to clipboard operation
waldo copied to clipboard

Problems with comparing complex numbers

Open hadley opened this issue 2 years ago • 0 comments

waldo::compare(1 + 1i, 10 + 10i)
#> Warning in sprintf(paste0("%0.", digits, "f"), x): imaginary parts discarded in
#> coercion

#> Warning in sprintf(paste0("%0.", digits, "f"), x): imaginary parts discarded in
#> coercion
#> `old`:  1
#> `new`: 10

Created on 2022-06-30 by the reprex package (v2.0.1)

hadley avatar Jul 01 '22 01:07 hadley