I'm trying to make a slider for the current temperature based on the code "w_tmp" in the skincommands.txt.

I've got it almost all the way working:

This is designed so that if the temp is 120, the slider would be at or close to 100%

Problem is the "w_tmp" label returns with the degrees symbol, and it doesn't calculate the slider's position because the label isn't strictly a number. (Can't calculate, so it always returns the position as 0, same as if you tried to divide 120 by orange, the answer is zero because the syntax is wrong.)

Is there a way to get just the numeric value from the "w_tmp" label so that this can be done?

I've got it almost all the way working:

Code:

SETVARBYCODE;TEMPSLIDER;w_tmp||EVAL;TEMP;$TEMPSLIDER$*546

Problem is the "w_tmp" label returns with the degrees symbol, and it doesn't calculate the slider's position because the label isn't strictly a number. (Can't calculate, so it always returns the position as 0, same as if you tried to divide 120 by orange, the answer is zero because the syntax is wrong.)

Is there a way to get just the numeric value from the "w_tmp" label so that this can be done?

## Comment