Convert Duration to Number

Is there a simple way to convert duration in hours to a number? Examples:
1 hr 30 mins = 1.5
1 hr = 1
2 hr 30 mins = 2.5

Thanks!

hi @Samuel_Langford ,

yes you can

Cheers, Christiaan

:man_facepalming: Of course!

Thanks