|
|
1
1
这个
定义的规范表示( s , e s , f 10 n e + )对于最大整数 n f 10 <2 96 e ¤ 28如果 e 不是28,则规范有效位在天花板(2)中 /10), 2 96 1,包含在内。
我们可以遍历非负
Set s = 0, e = 28.
For f from 0 to 2^96 - 1, inclusive:
Process (s, f, e) as a decimal value.
For e from 27 down to 0, inclusive:
For f from ceiling(2^96 / 10) to 2^96 - 1, inclusive:
Process (s, f, e) as a decimal value.
我
和
U型
我
U型
(0) Set s to 0, f to fL, and e to eL.
(1) If e ⤠eU and f > fU, stop.
(2) Process (s, f, e) as a decimal number.
(3) Set f to f+1.
(4) If f is less than 2^96, go to (1).
(5) Set e to e-1 and f to f/10.
(6) Go to (1).
负数的扩展是显而易见的。 |
|
|
Leo · 为什么carg(-0)返回-pi? 1 年前 |
|
Fyodor · 在C中使用sin和cos计算数学表达式不正确? 2 年前 |
|
|
Alexander · 为什么数字的输出不同? 2 年前 |
|
Ronny · 如何防止程序返回“inf”? 2 年前 |
|
|
EMS · 为什么双重打印的值与C中的浮点值相同,而它们的大小不同? 2 年前 |
|
|
Dakolas · 对python十进制库感到困惑 2 年前 |
|
|
RTC222 · 无法获取vrndscalepd的正确舍入模式代码 2 年前 |