pastas.timer.SolveTimer.format_num#

static SolveTimer.format_num(n)#

Intelligent scientific notation (.3g).

Parameters

n (int or float or Numeric) – A Number.

Returns

out – Formatted number.

Return type

str