nschloe/matlab2tikz — pull request #354 by theswitch (2014-10-02 01:25:14+00:00)
Title: Explicitly cast mixing percentage to an int

There is a very occasional bug in which matlab seems to ignore int format specifiers and print in exponential notation instead (i.e. printing `red!5.500000e+01!mycolor1` instead of `red!55!mycolor1`). This breaks xcolor, which doesn't parse this notation. Since p*100 is a percentage in the range [0,100], it is safe to cast this to an int and guarantee that matlab will correctly output the mixed colour.