当前位置:网站首页>Variables and data types
Variables and data types
2022-06-12 05:00:00 【なんでもないゃ】
Variable
Identifiers are generally composed of numbers 、 Letter 、 Underline 、$ Other components , The number can't start ;
Variable input : First step :new One Scanner object , for example Scanner sc=new Scanner(System.in); The second step : Read the string through this object and put it into the variable , for example String name=sc.next();
data type
Note on conversion between base numbers :
The way to convert negative decimal to binary : First convert the absolute value of decimal to binary , Then reverse by bit and add 1;
Negative numbers need complement : According to the not , add 1;
The way negative binary is converted to decimal : Subtract binary by one and negate by bits , Then convert to decimal , Add a minus sign at the end ;
A single byte represents an octet binary , Indicates that the integer range is -128~127;
Integer defaults to int type , The floating point type defaults to double type ;
float Type has only seven significant digits ,double A type can represent 15 Significant digits ; And the floating-point type has error in calculation ;
char The type corresponds to ASCII Code value :'0':48 'A':65 'a':97 Space :32 Line break :10;
边栏推荐
- Surface net radiation flux data, solar radiation data, rainfall data, air temperature data, sunshine duration, water vapor pressure distribution, wind speed and direction data, surface temperature
- Install pycharm under Kali and create a shortcut access
- Harris corner detection principle-
- Uview customer management JS
- [GIS tutorial] ArcGIS for sunshine analysis (with exercise data download)
- C asynchronous programming (async and await) and asynchronous method synchronous invocation
- Day18 creation and restoration of sparse array
- The emergence of new ides and the crisis of programmers?
- @What happens if bean and @component are used on the same class?
- 2022 self study materials for Zhejiang computer level III network and security technology examination (1) (updated on 2.28)
猜你喜欢

Introduction to MMS memory optimization of Hisilicon MPP service

2022-02-28 WPF upper computer 126 understand mqtt

2022“高考记忆” 已打包完成,请查收!

Qinglong wool - Kaka

Let me tell you the benefits of code refactoring

Gavin teacher's perception of transformer live class - rasa dialogue robot project practice in the field of education agency mode and core component source code analysis under the microservice of educ

Longest palindrome string

Token based authentication

Microsoft announces that it will discontinue support for older versions of visual studio

File contains (regardless of suffix) Apache log remote file contains PHP encapsulated pseudo protocol:
随机推荐
Force/release learning and sorting in IC Verification (6) research on the influence of wire type signals
L1-066 cat is liquid (5 points)
kali_ Change_ Domestic source
Main business objects of pupanvr record (5)
Asp. Net core EF value conversion
SQL注入上传一句话木马(转)
Soil type, soil texture, soil nutrient and change data, soil organic matter, soil pH, soil nitrogen, phosphorus and potassium
2022 "college entrance examination memory" has been packaged, please check!
Difference between thread and task
Acquisition of Lai data, NPP data, GPP data and vegetation coverage data
Based on Visual Studio code Net Maui cross platform mobile application development
加速训练之并行化 tf.data.Dataset 生成器
Normalized vegetation index (NDVI) data, NPP data, GPP data, evapotranspiration data, vegetation type data, ecosystem type distribution data
Yolo opencv scale identification scale reading identification water gauge identification water level identification source code
Development of video preview for main interface of pupanvr-ui
InnoDB data storage structure – MySQL
Link: fatal error lnk1168: cannot open debug/test Solution of exe for writing
[backtracking] backtracking method to solve combinatorial problems
asp. Net core theme Middleware
BI 如何让SaaS产品具有 “安全感”和“敏锐感”(上)