code: def round_to_scale(number, precision):
      """Round a number or a float to a precision"""
      if precision < 1:
          return round_to_float(number, precision)
      return round_to_int(number, precision)
  
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 5 for calling a global function with example usage: round_to_scale(number, precision) and returns: round_to_int, round_to_float