How to initialize a value such as "?float"

I am trying to set a value on a widget, the value requires a type of “?float” - how would I create a float that is equal to 1.0 be valid for this widget’s value?

option{1.0} or false if no initial value

Thank you!