【发布时间】:2022-06-12 20:08:24
【问题描述】:
float a = 1234567890123456778; // not error
vs
float a = {1234567890123456778}; // narrowing conversion of '1234567890123456778' from 'long long int' to 'float' inside { }
为什么相同的东西但使用 {} 会出错?
【问题讨论】:
-
什么编程语言?什么编译器?
-
C++ , GCC 编译器
标签: c++ floating-point