There are two functions that can be used for 16-bit conversion.
Converting integer(int_value) to float (float_value):
Float_value := flt_FTOI()
Converting float (float_value) to integer (int_value) :
Int_value := flt_ITOF(float_value)
You can check Diablo16 Internal Functions Manual for more information about the functions.