Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOD() incorrect for fractions #346

Closed
1 of 3 tasks
andsnpl opened this issue Jun 13, 2017 · 1 comment
Closed
1 of 3 tasks

MOD() incorrect for fractions #346

andsnpl opened this issue Jun 13, 2017 · 1 comment
Labels
Milestone

Comments

@andsnpl
Copy link

andsnpl commented Jun 13, 2017

Do you want to request a feature or report a bug?

  • Bug
  • Feature

What is the current behavior?

MOD(1.5, 1) => 0

If the current behavior is a bug, please provide the steps to reproduce and
if possible a minimal demo of the problem with a sample spreadsheet.

What is the expected behavior or new feature?

MOD(1.5, 1) => 0.5

Did this work in previous versions of our tool? Which versions?

Unknown

  • I attached a sample spreadsheet. (You can drag files on to this issue)

Code to reproduce problem:

public void Main()
{
    var wb = new XLWorkbook();
    var ws = wb.AddWorksheet("Sheet1");
    var formula = "MOD(1.5, 1)";
    var result = ws.Evaluate(formula);
    Console.WriteLine("Evaluated \"{0}\": {1}", formula, result); // actual: 0. expected: 0.5

    Console.Write("Press any key to continue...");
    Console.ReadKey();
}
@igitur igitur added the bug label Jul 18, 2017
@igitur igitur added this to the v0.89 milestone Jul 18, 2017
@igitur
Copy link
Member

igitur commented Aug 23, 2017

ClosedXML v0.89.0-beta1 has been published and is ready for your testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants