class_docstr: A progress bar which logs upon completion of the item
  
  Note that there is also :func:`~datalad.log.log_progress` which can be used
  to get progress bars when attached to a tty but incremental log messages
  otherwise (as opposed to just the final log message provided by
  `LogProgressBar`).
class_docstr_tok: ["A","progress","bar","which","logs","upon","completion","of","the","item","Note","that","there","is","also",":","func",":","`","~datalad.log.log_progress","`","which","can","be","used","to","get","progress","bars","when","attached","to","a","tty","but","incremental","log","messages","otherwise","(","as","opposed","to","just","the","final","log","message","provided","by","`","LogProgressBar","`",")","."]
docstr: Return string representation of a number for human consumption
  
  For abs(x) <= 1000 would use 'scientific' (%g) notation, and for the
  larger a regular int (after rounding)
docstr_tok: ["Return","string","representation","of","a","number","for","human","consumption","For","abs","(","x",")","<","=","1000","would","use","'scientific","'","(","%","g",")","notation",",","and","for","the","larger","a","regular","int","(","after","rounding",")"]
code: def _naturalfloat(x):
      """Return string representation of a number for human consumption
  
      For abs(x) <= 1000 would use 'scientific' (%g) notation, and for the
      larger a regular int (after rounding)
      """
      return ("%g" % x) if abs(x) <= 1000 else "%i" % int(round(x))
  
imports: import humanize
  import sys
  import time
  from ..None import lgr
label_desc: Use image node_id 2 for calling the LogProgressBar obj's underlying member method code with example usage: obj._naturalfloat(x) and returns: unknown