> Can you provide a set of examples (AKA unit tests)? Then we can all see how it works. Yes, the idea is to have unit tests for lwprint_double to control and showcase how the shortest representation works and the impact / rounding due to the precision parameter. -- Raúl Marín Rodríguez carto.com