Skip to content

Align floating point print precision to the "normal" behaviour

Tommaso Pecorella requested to merge tommypec/ns-3-dev:PrintPrecision into master

This patch modifies how int64x64 are printed to align it with the "normal" behavior of flouting points. This is particularly needed for printing `Time| values:

  Time test = Seconds (1.0);
  std::cout << test.As (Time::S) << std::end;

Attached an example program.

time-print.cc

Merge request reports