Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 浮点值上的“f”后缀?
是否有不同的后缀可用于 double 类型,或者“f”是否适用于两者?
未修饰的浮点字面量(如1.5具有 type double)。后缀f构成类型float(如1.5f),并L构成类型(long double如1.5L)。
1.5
double
f
float
1.5f
L
long double
1.5L