code: def floatToFixed(value, precisionBits):
      """Converts a float to a fixed-point number given the number of
      precision bits.
  
      Args:
              value (float): Floating point value.
              precisionBits (int): Number of precision bits.
  
      Returns:
              int: Fixed-point representation.
  
      Examples::
  
              >>> floatToFixed(-0.61883544921875, precisionBits=14)
              -10139
              >>> floatToFixed(-0.61884, precisionBits=14)
              -10139
      """
      return otRound(value * (1 << precisionBits))
  
file_path: catboost/contrib/python/fonttools/fontTools/misc/fixedTools.py
imports: from .roundTools import otRound, nearestMultipleShortestRepr
  import logging
label_desc: Use image node_id 2 for calling a global function with example usage: floatToFixed(value, precisionBits) and returns: otRound