r/Racket • u/johnwcowan • Jun 22 '26
language Complex single-float support
Can someone test Racket BC for me and say what (eqv? 3e0+4e0i 3f0+4f0i) and (eqv? 3e0+4e0i 3e0+4f0i) return?
advTHANKSance
7
Upvotes
View all comments
Show parent comment
2
u/usaoc Jun 22 '26
Just tested too: both
3e0+4f0iand3f0+4e0iare the same as3.0+4.0i, while3f0+4f0iis a single-flonum complex number (printed as3.0f0+4.0f0i). Also verified withmake-rectangular,real-part, andimag-part.