@ float可以为负值吗?
float是单精度浮点数类型,可以表示的数值范围为-2^128 ~ +2^128。所以,它当然可以是负值。
@ c语言里面的float是什么意思?
float表示单精度浮点数类型。
1.C语言的浮点数有两种类型,float和double,float 单精度浮点数,其类型占空间4个字节,double表示双精度浮点数,其占空间8个字节.
2.float其数值范围为-3.4*10(-38)~3.4*10(38),double其数值范围为-1.7*10(-308)~1.7*10(308).
3.float的精度为7位,double的精度为16位。
@ float是主动还是被动?
是主动,例如:
1.There wasn enough water to float the ship.水不够深,船浮动不起来。
2.59 per cent of people believed the pound should be allowed to float freely.59%的人认为应该允许英镑自由浮动。
3.People seem to float in and out of my life.不同的人在偶的生命中出现和消失。