obspy.io.nordic.core._str_conv

_str_conv(number, rounded=False)[source]

Convenience tool to convert a number, either float or int into a string.

If the int or float is None, returns empty string.

>>> print(_str_conv(12.3))
12.3
>>> print(_str_conv(12.34546, rounded=1))
12.3
>>> print(_str_conv(None))

>>> print(_str_conv(1123040))
11.2e5