Output in fahrenheit instead of celsius to Initialstate

I’m sending the output of Imp env sensor to initialstate which is going fine as per the recipe. I would like to modify the output so inches of mercury and fahrenheit instead of millibars and celsius. I tried to modify the following line:
data.temp = reading.temperature; to this
data.temp = reading.temperature * 1.8 +32;
but it fails with errors.
Any ideas?
Thank you,

What type is reading.temperature? Try server.log(“type=”+typeof(reading.temperature)) to check. It needs to be “integer” or “float”

the type is float

Can you attach the actual code and errors you’re seeing?

I have solved this by converting in the Agent code prior to display Thank you!