|
1. | Upper or lowercase L means long, upper or lowercase F means float and upper or lowercase D means double |
| 若为大写或小写的L,代表long; 大写或小写的F,代表float; 大写或小写的D,则代表double。 |
|
|
| |
2. | }float naturalLogBase() { return 2.718f; |
| }float naturalLogBase() { return 2.718; |
|
|
| |
3. | However, with float f4 = 1e-47f; |
| 然而,对于下述语句:float f4 = 1e-47f; |
|
|
| |
4. | float on-float off |
| 浮装浮卸 |
|
|
| |
5. | if you multiply a float and a double, the result will be double; |
| 若将一个float值与一个double值相乘,结果就是double; |
|
|
| |
6. | So the answer is that casting from a float or double to an integral value always truncates. |
| 所以答案就是:将一个float或double值造型成整数值后,总是将小数部分“砍掉”,不作任何进位处理。 |
|
|
| |
7. | an integral value to a floating-point variable, the compiler will automatically convert the int to a float |
| 例如,假设我们为浮点变量分配一个整数值,计算机会将int自动转换成float。 |
|
|
| |
8. | controlled float/managed float |
| 管理浮动 |
|
|
| |
9. | 3、 为什么潜水艇既能浮在水面,又能潜入水底? |
| Why can a submarine float and sink? |
|
|
| |
10. | float on-float off barge carrier |
| 漂上漂下载驳船 |
|
|
| |