code: def round_to_float(number, precision):
      """Round a float to a precision"""
      rounded = Decimal(
          str(floor((number + precision / 2) // precision))
      ) * Decimal(str(precision))
      return float(rounded)
  
imports: from __future__ import division
  import re
  from decimal import Decimal
  from math import ceil, cos, floor, log10, pi, sin
label_desc: Use image node_id 4 for calling a global function with example usage: round_to_float(number, precision) and returns: float