Use constant value in imag implementation for real-valued data types
#2063
+8
−5
imag implementation for real-valued data types
#2063