DEV Community

Cover image for Data types
umida5
umida5

Posted on

Data types

                          Data Types
Enter fullscreen mode Exit fullscreen mode

Data Types - data tiplar.

int - butun sonlar uchun ishlatiladi.
float - kasr sonlar uchun ishlatiladi.
string - tekst va matn uchun ishlatiladi.
bool - mantiqiy qiymatlar (true yoki false)

int yosh = 25;
float harorat = 36.6;
bool isActive = true;
string = "matn";
Enter fullscreen mode Exit fullscreen mode
  • float va double ni farqi shuki float 4 bayt,double esa ikki baravar ko'proq - 8 bayt.Shunda double ga kattaroq kasr sonlar saqlay oladi,float ga qaraganda.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs