bids.reports.utils.num_to_str

num_to_str(num)[source]

Convert an int or float to a nice string. E.g.,

21 -> ‘21’ 2.500 -> ‘2.5’ 3. -> ‘3’