DEV Community

Sabrina
Sabrina

Posted on

Data types

a) Quyidagi o'zgaruvchilarni qiymat turlariga ajrating: int,float,string,bool.

int - 4 bayt : -2,147,483,648 dan 2,147,483,647 gacha
float - 4 bayt : ±1.5 x 10^−45 dan ±3.4 x 10^38 gacha
string - Belgilar qatori matnlarni saqlash uchun
bool - (1 bayt) Mantiqiy qiymatlar (true yoki false).

b) float va double orasidagi farq nima?

float = 4 bayt
double esa 8 bayt

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more