在c++的复杂类中,为实部和虚部指定了多少位

How many bits are specified for real and imaginary parts in complex class of c++

本文关键字:虚部 多少 实部 c++ 复杂      更新时间:2023-10-16

我使用复数类来计算浮点数,有人能告诉我数据的实部和虚部分配了多少位或字节吗。此外,保存数据的格式是什么,即RIRIRI或RRRIII

不能将std::complex<float>直接传递给std::numeric_limits<std::complex<float>>,但可以检查std::numeric_limits<float>。这给出了实部和虚部的数值性质。