@core_helper
def SI_number_span(number):
 number = int(number)
 if (number < 1000):
  output = literal('<span>')
 else:
  output = literal((('<span title="' + formatters.localised_number(number)) + '">'))
 return ((output + formatters.localised_SI_number(number)) + literal('</span>'))

@ core_helper def SI_number_span ( number ) : number = int ( number ) if ( number < 1000 ) : output = literal ( '<span>' ) else : output = literal ( ( ( '<span title="' + formatters . localised_number ( number ) ) + '">' ) ) return ( ( output + formatters . localised_SI_number ( number ) ) + literal ( '</span>' ) )
outputs a span with the number in si unit eg 14700 -> 14 .