Useful-markdown-card, variables

Hi,

I’m trying to use the useful-markdown-card to display a variable value. I just keep getting “undefined” as a value. So I decided to try an input_number instead (however, not everything I want to display is numeric, hence variables) which displays the correct value, but it has a single decimal place “10.0” and I want an integer “10”.

Best case: can something be done to get the card to display the value of the variables?
Using:
[[ variable.climate.attributes.test ]]
Getting:
“undefined”

Alternative: is there a way to change the input_number format to display an integer without having to dance around using sensors or scripts and such?
Using:
[[ Input_number.hour ]]
Getting: “10.0”

Thanks!