format_number_if_not_nan#

format_number_if_not_nan(x, floating_point: int = 2)[source]#

Format number if it is not nan for elegant display.

Parameters
x

Number to be displayed

floating_pointint , default: 2

Number of floating points to display

Returns
——-
str

String of beautified number if number is not nan