Home> Common Problem> body text

What is the value range of int type data?

Karen Carpenter
Release: 2020-03-06 16:20:43
Original
36555 people have browsed it

What is the value range of int type data?

The int type is the most commonly used integer type. It occupies 32 bits when stored. The range that can be represented is -2 to the 31st power to 2 to the 31st power -1 .

The short type occupies l6 bits during storage, and the range it can represent is -2 to the 16th power to 2 to the 16th power -1. The long type occupies 64 bits when stored, and the data range is -2 to the 64th power to 2 to the 64th power -1.

The above is the detailed content of What is the value range of int type data?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
int
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!