Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Примитивни типове данни и променливи
- Когато запазим някакъв стринг, например името си, в компютъра то се запазва като поредица от битове - 1-ци и 0-ли
- Компютрите запазват информация в паметта. Тази информация се записва в променлива.
- Data type – a domain of values of similar characteristics. Defines the type of information stored in the computer memory
- Integer-а например има големина 4 байта (32 бита). Следователно има определена минимална и определена максимална стойност, която може да запишем в променлива от тип int
- Floating-point numbers:
- - Represent real numbers
- - Can behave abnormally in calculations
- Проблема при floating-point числата е че при математически действия се получават неточни числа
- Decimal floating-point numbers:
- - There are no abnormalities in calculations
- - Used for financial calculations
- Object type
- - Is the base type of all other types
- - Can hold values of any other type
- Variable
- - A placeholder of information that can be changed at run-time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement