Stable Numerics Subroutine Library
Programming Reference Manual
Version 1.2 DD-00006-012

9.2.6 Normalization

pair<T> normalized() const; 
pair<T>& normalize();

These functions normalize the pair, that is ensure that for a pair the main part contains the significant value and the remainder part contains the insignificant remainder.

normalized()


Returns a copy of the current pair object but in a normalized state.

normalize()


Normalizes the current pair object and returns a reference to it.