zoukankan      html  css  js  c++  java
  • overflow

    Computer Science An Overview _J. Glenn Brookshear _11th Edition

    The point is that computers can make mistakes. So, the person using the
    machine must be aware of the dangers involved. One problem is that computer
    programmers and users become complacent and ignore the fact that small values
    can accumulate to produce large numbers. For example, in the past it was com-
    mon to use patterns of 16 bits for representing values in two’s complement nota-
    tion, which meant that overflow would occur when values of 21532,768 or
    larger were reached. On September 19, 1989, a hospital computer system mal-
    functioned after years of reliable service. Close inspection revealed that this date
    was 32,768 days after January 1, 1900, and the machine was programmed to com-
    pute dates based on that starting date. Thus, because of overflow, September 19,
    1989, produced a negative value—a phenomenon for which the computer’s pro-
    gram was not designed to handle.
     
     
  • 相关阅读:
    idea初始化配置
    常用网址
    linux改错了profile文件
    获得ip地址[转载]
    java 基本数据类型转换
    log4j配置概要
    HTTP状态码
    HTTP 的请求方式
    10、类和方法
    9、一切都是对象
  • 原文地址:https://www.cnblogs.com/rsapaper/p/6076216.html
Copyright © 2011-2022 走看看