zoukankan      html  css  js  c++  java
  • 数据类型和数值范围

    x86
    数据类型 类型标示符  字节 数值范围
    整形   [signed] int 4 -2147483648~+2147483647
    无符号整形 unsigned int 4 0~4294967295
    短整型 short [int] 2 -32768~+32767
    无符号短整型 unsigned short [int] 2 0~65535
    长整形 long [int] 4 -2147483648~+2147483647
    无符号长整形 unsigned long [int] 4 0~4294967295
    字符型 [signed] char 1 -128~+127  
    无符号字符型 unsigned char 1 0~255
    单精度型 float 4 3.4*10e-38~3.4*10e38
    双精度型 double 8 1.7*10e-308~1.7*10e308
    长双精度型 long double 8 1.7*10e-308~1.7*10e308
    51mcu
    数据类型 类型标示符  字节 数值范围
    整形   [signed] int 2 -32768~+32767
    无符号整形 unsigned int 2 0~65535
    短整型 short [int] 2 -32768~+32767
    无符号短整型 unsigned short [int] 2 0~65535
    长整形 long [int] 4 -2147483648~+2147483647
    无符号长整形 unsigned long [int] 4 0~4294967295
    字符型 [signed] char 1 -128~+127  
    无符号字符型 unsigned char 1 0~255
    单精度型 float 4 3.4*10e-38~3.4*10e38
    双精度型 double 4 3.4*10e-38~3.4*10e38
    长双精度型 long double 4 3.4*10e-38~3.4*10e38

    ARM
    数据类型 类型标示符  字节 数值范围
    整形   [signed] int 4 -2147483648~+2147483647
    无符号整形 unsigned int 4 0~4294967295
    短整型 short [int] 2 -32768~+32767
    无符号短整型 unsigned short [int] 2 0~65535
    长整形 long [int] 4 -2147483648~+2147483647
    双字长整形 long long  8  
    无符号长整形 unsigned long [int] 4 0~4294967295
    字符型 [signed] char 1 -128~+127  
    无符号字符型 unsigned char 1 0~255
    单精度型 float 4 3.4*10e-38~3.4*10e38
    双精度型 double 8 1.7*10e-308~1.7*10e308
    长双精度型 long double 8 1.7*10e-308~1.7*10e308

  • 相关阅读:
    powerview使用小记
    OPENWRT自动检测断线脚本
    openwrt路由在中继模式下掉线检测重启脚本
    OPENWRT断网自动关闭WIFI脚本
    jsp <li>中的多个input怎么换行
    联想笔记本G480怎么安装双系统?
    Java中List集合与Set集合
    JS中onfocus()事件,onblur()事件,onload()事件
    java之Date(日期)、Date格式化、Calendar(日历)
    如何一条SQL语句就能统计出多个表中某数据的数量?
  • 原文地址:https://www.cnblogs.com/amanlikethis/p/3440402.html
Copyright © 2011-2022 走看看