def _percent_to_integer(percent):
return int(<EOL>round(<EOL>float(percent.split(u'<STR_LIT:%>')[<NUM_LIT:0>]) / <NUM_LIT:100> * <NUM_LIT:255><EOL>)<EOL>)<EOL>
Internal helper for converting a percentage value to an integer
between 0 and 255 inclusive.