Advertisement
Guest User

Примитивни типове данни и променливи

a guest
Aug 30th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. Примитивни типове данни и променливи
  2. Когато запазим някакъв стринг, например името си, в компютъра то се запазва като поредица от битове - 1-ци и 0-ли
  3.  
  4. Компютрите запазват информация в паметта. Тази информация се записва в променлива.
  5.  
  6. Data type – a domain of values of similar characteristics. Defines the type of information stored in the computer memory
  7.  
  8. Integer-а например има големина 4 байта (32 бита). Следователно има определена минимална и определена максимална стойност, която може да запишем в променлива от тип int
  9.  
  10. Floating-point numbers:
  11. - Represent real numbers
  12. - Can behave abnormally in calculations
  13.  
  14. Проблема при floating-point числата е че при математически действия се получават неточни числа
  15.  
  16. Decimal floating-point numbers:
  17. - There are no abnormalities in calculations
  18. - Used for financial calculations
  19.  
  20. Object type
  21. - Is the base type of all other types
  22. - Can hold values of any other type
  23.  
  24. Variable
  25. - A placeholder of information that can be changed at run-time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement