Read e-book online General decimal arithmetic specification V1.51 PDF

By Cowlishaw M.

Show description

Read Online or Download General decimal arithmetic specification V1.51 PDF

Best electronics: radio books

Naomi Pasachoff's Marie Curie and the science of radioactivity PDF

Examines the lifetime of the Polish-born scientist who, together with her husband Pierre, used to be offered a 1903 Nobel Prize for locating radium.

Radar Made Easy - download pdf or read online

At the present time, radar in a single shape or one other is probably going to show up far and wide: on the street, on the waterfront, in an underground motor-road. through a ways the widest use of radar is made by means of the army and scientists. In all of those fields hundreds of thousands upon hundreds of thousands of radar units are at paintings. a few of them are sufficiently small to be outfitted into spectacles, others weigh enormous quantities of lots.

Extra resources for General decimal arithmetic specification V1.51

Example text

0' '7' minus and plus minus and plus both take one operand, and correspond to the prefix minus and plus operators in programming languages. The operations are evaluated using the same rules as add and subtract; the operations plus(a) and minus(a) (where a and b refer to any numbers) are calculated as the operations add('0', a) and subtract('0', b) respectively, where the '0' has the same exponent as the operand. 3' Copyright (c) IBM Corporation 2006. All rights reserved. 32 multiply multiply takes two operands.

For example, the square-root of either [0,10,–1] or [0,11,–1] is often calculated by first multiplying the coefficient by ten and reducing the exponent by 1 and then determining the square root. If the exponent is held as a two’s complement binary number, the ideal exponent is trivially calculated by applying an arithmetic right shift of one bit. This is because a typical implementation of power(x,y) will calculate its result using exp(ln(x)*y), and few results of the exp function are exact. 51 Copyright (c) IBM Corporation 2006.

If the operand is greater than zero, the result is the square root of the operand. If no rounding is necessary (the exact result requires precision digits or fewer) then the the coefficient and exponent giving the correct value and with the exponent closest to the ideal exponent is used. If the result must be inexact, it is rounded using the round–half–even algorithm and the coefficient will have exactly precision digits (unless the result is subnormal), and the exponent will be set to maintain the correct value.

Download PDF sample

General decimal arithmetic specification V1.51 by Cowlishaw M.


by Anthony
4.5

Rated 4.72 of 5 – based on 35 votes