storage.set_number( key, value )
Note, lua has ‘number’ type but it can can be in integer state. The difference between states are in conversion to string and printing.
saves value in integer state if possible. See example for details.