modules: casting constants to a proper float type to avoid compiler warnings