This project is read-only.
1

Closed

Bug in Highlighter

description

Hi,
 
The line in SelectSentencesByPercent at Highlighter.cs:
int maxWords = totalWords*(percent/100);
must be:
int maxWords = (int)(totalWords * (percent / 100f));
 
for not lose precission in integer division
 
Thanks
Closed Feb 1, 2011 at 9:44 PM by PatrickBurrows
Fixed.

comments

PatrickBurrows wrote Feb 1, 2011 at 9:44 PM

Fixed in source.

wrote Feb 14, 2013 at 1:15 AM

wrote May 16, 2013 at 8:39 AM