andersnm / ExcelNumberFormat

Parse and render Excel number format strings
MIT License
79 stars 27 forks source link

Fixing issue when Fraction is >= int.MaxValue #32

Open 1985media opened 3 years ago

1985media commented 3 years ago

Fixing issue when an excel cell is formatted as "Fraction" and the value is greater than int.MaxValue (2,147,483,647). Prior to this fix, a value greater than int.MaxValue throws the error "System.OverflowException: Negating the minimum value of a twos complement number is invalid."