code: def digit_value(number_entity):
      value = number_entity[RESOLVED_VALUE][VALUE]
      if value == int(value):
          # Convert 24.0 into "24" instead of "24.0"
          value = int(value)
      return str(value)
  
file_path: snips-nlu/snips_nlu/string_variations.py
imports: from __future__ import unicode_literals
  import itertools
  import re
  from builtins import range, str, zip
  from future.utils import iteritems
  from snips_nlu.constants import END, LANGUAGE_DE, LANGUAGE_EN, LANGUAGE_ES, LANGUAGE_FR, RESOLVED_VALUE, RES_MATCH_RANGE, SNIPS_NUMBER, START, VALUE
  from snips_nlu.languages import get_default_sep, get_punctuation_regex, supports_num2words
  from snips_nlu.preprocessing import tokenize_light
label_desc: Use image node_id 4 for calling a global function with example usage: digit_value(number_entity) and returns: str