Rump, Siegfried M.Siegfried M.Rump2023-06-082023-06-082023-06BIT Numerical Mathematics 63 (2): 28 (2023-06)http://hdl.handle.net/11420/15383There 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.en1572-9125BIT20232Springer Science + Business Media B.V.https://creativecommons.org/licenses/by/4.0/Base-βFloating-point arithmeticINTLABPrecision-pPredecessorSuccessorUnit in the first placeUnit in the last placeMathematikComputation of the unit in the first place (ufp) and the unit in the last place (ulp) in precision-p base βJournal Article10.15480/882.516910.1007/s10543-023-00970-210.15480/882.5169Journal Article