How to round the number in custom button card

Hi Guys,
I want to present brightness of the light in %. the value which I am getting is in range of 0-255, so I need to divide by 2.55. This gives me a lot of digits after the dot. How to write this piece to round it to full %, please:

name: |
[[[
return "FLOOR - " + (((states[‘light.bedroom_floor_lamp’].attributes.brightness)/2.55 + “%”))
]]]

From memory, the custom button card uses Javascript, so you can use the “Math.round” function.

name: |
[[[
return "FLOOR - " + (((Math.round(states['light.bedroom_floor_lamp'].attributes.brightness)/2.55) + "%"))
]]]

Also, you should format your code in the forum using “</>” in the toolbar (ie. surrounding in 3 back-ticks)