Setting a numeric variable.

Setting a numeric variable.

I need to set a number or currency field based on another value. My if condition is working perfectly fine but I cannot get the correct syntax to set a numeric field using the script. I can set the text fields perfectly fine. I've tried the following:

number_field = 14;
input.number_field = 14;
set number_field = 14;
set input_number_field = 14;

I've set the number_field as a currency field and tried 14.0 as well but didn't work.

I have a radio buttons and based on the selection I want to populate the number/currency field.