You could look at several examples as how to communicate from your host with the fpga target.
in this case I suggest to make the value an integer (flaoting point is difficult for an fpga)
and send it via a variable to the fpga software.
see the fpga as a separate computer that you can communicate with via variables.
greetings from the Netherlands