cv2.namedWindow(myFloat)

myFloat = 3.3
windowname = f"{myFloat}" # a "format" string
cv2.namedWindow(windowname)

is that the intention? not sure why you’d wanna use a number as a window’s name.

1 Like