You should definitely use VAL() to convert a string to a value like
code:
$DP = VAL(ReadProfileString("U:\Dp_ini\dp.ini","DP","Current"))

Also, if you are using KiXtart 4.10 or later, please read the KiXtart manual for the following functions: CDBL(), CINT(), CSTR()
_________________________
There are two types of vessels, submarines and targets.