GUI-927
convert value to integer before applying negation
Merge pull request #669 from eucalyptus/GUI-927

GUI-927