code: def int_to_float(val, flt_type):
      """Convert integer `val` to floating point type `flt_type`
  
      Why is this so complicated?
  
      At least in numpy <= 1.6.1, numpy longdoubles do not correctly convert to
      ints, and ints do not correctly convert to longdoubles.  Specifically, in
      both cases, the values seem to go through float64 conversion on the way, so
      to convert better, we need to split into float64s and sum up the result.
  
      Parameters
      ----------
      val : int
          Integer value
      flt_type : object
          numpy floating point type
  
      Returns
      -------
      f : numpy scalar
          of type `flt_type`
  
      Examples
      --------
      >>> int_to_float(1, np.float32)
      1.0
      """
      return flt_type(val)
  
imports: from __future__ import annotations
  import warnings
  from platform import machine, processor
  import numpy
  from .deprecated import deprecate_with_version
label_desc: Use image node_id 8 for calling a global function with example usage: int_to_float(val, flt_type) and returns: flt_type