一个编程的小问题
登录 | 论坛导航 -> 华新鲜事 -> 求学狮城 | 本帖共有 4 楼,当前显示第 4 楼 : 从楼主开始阅读 : 本帖树形列表 : 返回上一页
作者:simon (等级:10 - 炉火纯青,发帖:6859) 发表:2008-09-02 18:19:45  4楼 
taken from wiki:Scheme_(programming language)
"The numeric type is further divided into a numerical tower, with subtypes complex, real, rational and integer. (Note that these subtypes are not disjoint; in fact each type is a subset of the previous one). While it is not required that a Scheme implementation support the entire numerical tower, most implementations do. In addition to these traditional properties, Scheme numbers may have the property of "exactness". Integers and rational numbers are exact. An arithmetic operation involving numbers one or more of which is inexact has an inexact result.[1]"

In other words, some implementation of real numbers of scheme is imprecise.
Besides, I don't think Java has such problem.


You may say I'm a dreamer
but I'm not the only one...
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表

本帖共有 4 楼,当前显示第 4 楼,本文还有 N-1 层楼,要不你试试看:点击此处阅读更多 >>



请登录后回复:帐号   密码