You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
## Float
|
|
|
|
Kiểu dữ liệu số thực.
|
|
|
|
|
|
|
|
### Các phiên bản
|
|
|
|
```glsl
|
|
|
|
float aFloat = 1.0;
|
|
|
|
float bFloat = float(aBool);
|
|
|
|
float cFloat = float(aInt);
|
|
|
|
```
|
|
|
|
|
|
|
|
### Mô tả
|
|
|
|
```float``` lưu giá trị của số thực, bao gồm cả phần nguyên lẫn phần thập phân.
|
|
|
|
|
|
|
|
### Tham khảo thêm
|
|
|
|
[void](/glossary/?lan=vi&search=void), [bool](/glossary/?lan=vi&search=bool), [int](/glossary/?lan=vi&search=int), [float](/glossary/?lan=vi&search=float), [bvec2](/glossary/?lan=vi&search=bvec2), [bvec3](/glossary/?lan=vi&search=bvec3), [bvec4](/glossary/?lan=vi&search=bvec4), [struct](/glossary/?lan=vi&search=struct)
|