#NEWLINE# def determine_number_type( values ) : #NEWLINE# #INDENT# '\n    Determine if a column of numbers in an XLS file are integral.\n    ' #NEWLINE# integral = True #NEWLINE# for v in values : #NEWLINE# #INDENT# if ( v and ( ( integral % 1 ) != 0 ) ) : #NEWLINE# #INDENT# integral = False #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# if integral : #NEWLINE# #INDENT# return int #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return float