LCD Problem - cannot retreive voltage

I am setting up my LCD display and cannot retrieve the main voltage. I get “nan” as the value, In globals I setup Voltage_1 as a float and did the code is as follows:
SetLCDText ( 1 , 1 , “Voltage main=%f” , (int)Voltage_1 ) ;

I can post all the code, but can somebody look let me know what direction to go.
Bill R.

Remove the (int)