Anmerkungen:
Sonstige Körperschaft: Technische Universität Hamburg
Sonstige Körperschaft: Technische Universität Hamburg, Institut für Zuverlässiges Rechnen
Beschreibung:
There are simple algorithms to compute the predecessor, successor, unit in the first place, unit in the last place etc. in binary arithmetic. In this note equally simple algorithms for computing the unit in the first place and the unit in the last place in precision-p base- β arithmetic with p⩾ 1 and with β⩾ 2 are presented. The algorithms work in the underflow range, and numbers close to overflow are treated by scaling. The algorithms use only the basic operations with directed rounding. If the successor (or predecessor) of a floating-point number is available, an algorithm in rounding to nearest is presented as well.