diff options
| author | Stephen Pike <[email protected]> | 2012-04-19 15:35:14 -0400 |
|---|---|---|
| committer | Stephen Pike <[email protected]> | 2012-04-19 15:35:14 -0400 |
| commit | c8a6711d681d4cce4be46a8346e69c6b184e6cf6 (patch) | |
| tree | 82295d5d6b9b4bb62d9a0df9526fd10ee470db28 /lib/axlsx/drawing/num_data_source.rb | |
| parent | 12e506de99033957716c0937ccaf234b78fe32f5 (diff) | |
| download | caxlsx-c8a6711d681d4cce4be46a8346e69c6b184e6cf6.tar.gz caxlsx-c8a6711d681d4cce4be46a8346e69c6b184e6cf6.zip | |
# Force result of Fixnum division to Fixnum
The mathn library overrides Fixnum division to return a rational, so
`1/2 => (1/2)` instead of `1/2 => 0`. Axslx calls chr on the result of
Fixnum division, which is incompatible. Fix it by forcing to integer.
Diffstat (limited to 'lib/axlsx/drawing/num_data_source.rb')
0 files changed, 0 insertions, 0 deletions
